DescriptionGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, g
...
DescriptionSay you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You
...
DescriptionSay you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You
...
DescriptionSay you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one
...
DescriptionGiven an unsorted array of integers, find the length of the longest consecutive elements sequence.
For example,Given [100, 4, 200, 1, 3, 2]
...
DescriptionFind the contiguous subarray within an array (containing at least one number) which has the largest product.
For example, given the array [
...
DescriptionSuppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0
...