摘要: For this task, I did not complete it during the contest. This is taged by easy! class Solution { public int movesToMakeZigzag(int[] nums) { int[] res 阅读全文
posted @ 2019-08-08 00:26 setNULL 阅读(115) 评论(0) 推荐(0) 编辑
摘要: The Tribonacci sequence Tn is defined as follows: T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for n = 0. Given n, return the value of Tn. 我写的c 阅读全文
posted @ 2019-07-30 00:02 setNULL 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 蹉跎岁月 岁月里蹉跎。今天补交一个题。 这个题在leetcode里是easy的难度,我确没有写完,真不愿意来承认啊。 题目如下: Given a list of dominoes, dominoes[i] = [a, b] is equivalent to dominoes[j] = [c, d]  阅读全文
posted @ 2019-07-24 11:56 setNULL 阅读(147) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/contest/weekly-contest-143/problems/path-in-zigzag-labelled-binary-tree/ https://leetcode.com/contest/weekly-contest-143/problems 阅读全文
posted @ 2019-07-02 02:37 setNULL 阅读(143) 评论(0) 推荐(0) 编辑
摘要: openssl rand -base64 12 // Generate random password in Linux CLI // Generate a random password quickly in CLI using openssl // Generate random passwor 阅读全文
posted @ 2017-08-18 08:31 setNULL 阅读(87) 评论(0) 推荐(0) 编辑
摘要: http://www.lintcode.com/en/problem/maximum-average-subarray/ Given an array with positive and negative numbers, find the maximum average subarray whic 阅读全文
posted @ 2017-07-17 13:08 setNULL 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Given a target number, a non-negative integer k and an integer array A sorted in ascending order, find the k closest numbers to target in A, sorted in 阅读全文
posted @ 2017-07-15 08:16 setNULL 阅读(83) 评论(0) 推荐(0) 编辑
摘要: Given a mountain sequence of n integers which increase firstly and then decrease, find the mountain top. Example Given nums = [1, 2, 4, 8, 6, 3] retur 阅读全文
posted @ 2017-07-13 09:17 setNULL 阅读(101) 评论(0) 推荐(0) 编辑