随笔分类 - codility
codility
摘要:左侧数组最大值减去右侧数组最大值的最大绝对值
阅读全文
摘要:1. CountDiv 数数有几个
Compute number of integers divisible by k in range [a..b].
阅读全文
摘要:1. MaxCounters 计数器
Calculate the values of counters after applying all alternating operations: increase counter by 1;
set value of all counters to current maximum.
阅读全文
摘要:1. FrogRiverOne 一苇渡江
Find the earliest time when a frog can jump to the other side of a river.
阅读全文
摘要:1. PermCheck 桃花顺检验
Check whether array A is a permutation.
阅读全文
摘要:1. MissingInteger 最小遗失整数 Find the minimal positive integer not occurring in a given sequence.
阅读全文
摘要:1.数组之差 TapeEquilibrium
Minimize the value |(A[0] + ... + A[P-1]) - (A[P] + ... + A[N-1])|.
阅读全文
摘要:1. 少了一个PermMissingElem
Find the missing element in a given permutation.
阅读全文
摘要:1.数组小挪移 CyclicRotation
Rotate an array to the right by a given number of steps.
阅读全文
摘要:1. 找出数组中的单身狗OddOccurrencesInArray Find value that occurs in odd number of elements.
阅读全文
摘要:1. 求整数最大的连续0的个数 BinaryGap Find longest sequence of zeros in binary representation of an integer.
阅读全文

浙公网安备 33010602011771号