上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页
摘要: Given an array with integers. Find two non-overlapping subarrays A and B, which |SUM(A) - SUM(B)|is the largest. Return the largest difference. Notice 阅读全文
posted @ 2016-03-30 12:52 哥布林工程师 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Find the contiguous subarray within an array (containing at least one number) which has the largest product. Example For example, given the array [2,3 阅读全文
posted @ 2016-03-30 11:56 哥布林工程师 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. Example For example, given the follo 阅读全文
posted @ 2016-03-30 07:32 哥布林工程师 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. Example Given 4 points: (1,2), (3,6), (0,0), (1,3) 阅读全文
posted @ 2016-03-30 06:44 哥布林工程师 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers and a number k, the majority number is the number that occurs more than 1/k of the size of the array. Find it. Notice There 阅读全文
posted @ 2016-03-30 02:51 哥布林工程师 阅读(241) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, the majority number is the number that occursmore than 1/3 of the size of the array. Find it. Notice There is only one maj 阅读全文
posted @ 2016-03-29 18:04 哥布林工程师 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Given the root and two nodes in a Binary Tree. Find the lowest common ancestor(LCA) of the two nodes. The lowest common ancestor is the node with larg 阅读全文
posted @ 2016-03-29 17:21 哥布林工程师 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Given a string, find the length of the longest substring without repeating characters. Example For example, the longest substring without repeating le 阅读全文
posted @ 2016-03-29 17:20 哥布林工程师 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes 阅读全文
posted @ 2016-03-29 12:47 哥布林工程师 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Given a sequence of integers, find the longest increasing subsequence (LIS). You code should return the length of the LIS. Clarification What's the de 阅读全文
posted @ 2016-03-29 12:33 哥布林工程师 阅读(185) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页