![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Codility
CaptianSlow
这个作者很懒,什么都没留下…
展开
-
Codility1 TapeEquilibrium
Task descriptionA 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 The difference between the two parts is the原创 2014-06-17 23:46:39 · 759 阅读 · 0 评论 -
Codility2 FrogJump
FrogJumpCount minimal number of jumps from position X to Y原创 2014-06-19 15:36:05 · 1116 阅读 · 0 评论 -
Codility3 PermMissingElem
Task descriptionA zero-indexed array A consisting of N different integers is given. The array contains integers in the range [1..(N + 1)], which means that exactly one element is missing.Your原创 2014-06-20 10:33:29 · 852 阅读 · 0 评论 -
Codility5 FrogRiverOne
Task descriptionA 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 the原创 2014-06-21 23:40:34 · 927 阅读 · 0 评论 -
Codility4 PermCheck
int max = 0; for (int i = 0; i if (A[i] > max) max = A[i]; if (max != n) return 0;原创 2014-06-21 14:42:20 · 707 阅读 · 0 评论 -
Codility6 MaxCounters
Task descriptionYou are given N counters, initially set to 0, and you have two possible operations on them:increase(X) − counter X is increased by 1,max counter − all counters are set to t原创 2014-06-22 20:41:13 · 824 阅读 · 0 评论