- 博客(9)
- 收藏
- 关注
原创 07 Maximum Slice Problem
题目 1:MaxDoubleSliceSumA non-empty zero-indexed array A consisting of N integers is given.A triplet (X, Y, Z), such that 0 ≤ X double slice.The sum of double slice (X, Y, Z) is the total
2015-12-25 20:52:32 393
原创 06 Leader
题目 1:DominatorA zero-indexed array A consisting of N integers is given. Thedominator of array A is the value that occurs in more than half of the elements of A.For example, consider array A
2015-12-25 20:13:44 411
原创 05 Stacks and Queues
题目 1:NestingA string S consisting of N characters is called properly nested if:S is empty;S has the form "(U)" where U is a properly nested string;S has the form "VW" where V and W are pro
2015-12-25 16:07:15 866
原创 04 Sorting
题目 1:MaxProductOfThreeA non-empty zero-indexed array A consisting of N integers is given. The product of triplet (P, Q, R) equates to A[P] * A[Q] * A[R] (0 ≤ P For example, array A such that
2015-12-18 15:58:23 413
原创 03 Prefix Sums
题目 1:CountDivWrite a function:int solution(int A, int B, int K);that, given three integers A, B and K, returns the number of integers within the range [A..B] that are divisible by K,
2015-12-18 09:44:29 503
原创 02 Counting Elements
题目1 :FrogRiverOneA small frog wants to get to the other side of a river. The frog is currently located at position 0, and wants to get to position X. Leaves fall from a tree onto the surface of
2015-12-15 15:52:12 310
原创 01 Time Complexity
题目1: TapeEquilibriumA non-empty zero-indexed array A consisting of N integers is given. Array A represents numbers on a tape.Any integer P, such that 0 < P < N, splits this tape into two non-empty parts: A[0], A[1], ..., A[P − 1] and A[P], A[P + 1], ...,
2015-11-12 17:14:13 480
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人