![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
=====Codility=====
文章平均质量分 80
Jia_bravets
这个作者很懒,什么都没留下…
展开
-
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 · 451 阅读 · 0 评论 -
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 · 299 阅读 · 0 评论 -
08 prime and composite numbers
题目 1:MinPerimeterRectangle原创 2015-12-26 11:32:47 · 696 阅读 · 0 评论 -
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 · 473 阅读 · 0 评论 -
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 · 404 阅读 · 0 评论 -
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 · 857 阅读 · 0 评论 -
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 · 398 阅读 · 0 评论 -
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 · 382 阅读 · 0 评论 -
09 Sieve of Eratosthenes
Title one: CountSemiprimes原创 2015-12-31 14:08:42 · 334 阅读 · 0 评论