摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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) 阅读全文
摘要:
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 阅读全文