上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页
摘要: 53. Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the a 阅读全文
posted @ 2016-07-07 12:16 新一代的天皇巨星 阅读(136) 评论(0) 推荐(0)
摘要: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except  阅读全文
posted @ 2016-07-06 23:13 新一代的天皇巨星 阅读(154) 评论(0) 推荐(0)
摘要: 228. Summary Ranges Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return ["0->2 阅读全文
posted @ 2016-07-02 13:37 新一代的天皇巨星 阅读(167) 评论(0) 推荐(0)
摘要: 217. Contains Duplicate Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears a 阅读全文
posted @ 2016-07-01 14:05 新一代的天皇巨星 阅读(184) 评论(0) 推荐(0)
摘要: You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston 阅读全文
posted @ 2016-07-01 00:50 新一代的天皇巨星 阅读(121) 评论(0) 推荐(0)
摘要: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every 阅读全文
posted @ 2016-06-30 13:58 新一代的天皇巨星 阅读(137) 评论(0) 推荐(0)
摘要: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r 阅读全文
posted @ 2016-06-30 12:36 新一代的天皇巨星 阅读(141) 评论(0) 推荐(0)
摘要: Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum 阅读全文
posted @ 2016-06-30 12:03 新一代的天皇巨星 阅读(182) 评论(0) 推荐(0)
摘要: 79. Word Search Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent ce 阅读全文
posted @ 2016-06-28 13:43 新一代的天皇巨星 阅读(150) 评论(0) 推荐(0)
摘要: 54. Spiral Matrix Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example,Given the follo 阅读全文
posted @ 2016-06-28 12:48 新一代的天皇巨星 阅读(205) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页