2017年4月28日

Codility---MinAvgTwoSlice

摘要: Task description A non-empty zero-indexed array A consisting of N integers is given. A pair of integers (P, Q), such that 0 ≤ P < Q < N, is called a s 阅读全文

posted @ 2017-04-28 12:09 Hugh_Sun 阅读(260) 评论(0) 推荐(0)

Codility---GenomicRangeQuery

摘要: Task description A DNA sequence can be represented as a string consisting of the letters A, C, G and T, which correspond to the types of successive nu 阅读全文

posted @ 2017-04-28 11:32 Hugh_Sun 阅读(585) 评论(0) 推荐(0)

Codility----PassingCars

摘要: Task description A non-empty zero-indexed array A consisting of N integers is given. The consecutive elements of array A represent consecutive cars on 阅读全文

posted @ 2017-04-28 10:10 Hugh_Sun 阅读(331) 评论(0) 推荐(0)

Codility---CountDiv

摘要: Task description Write a function: class Solution { public int solution(int A, int B, int K); } that, given three integers A, B and K, returns the num 阅读全文

posted @ 2017-04-28 09:38 Hugh_Sun 阅读(369) 评论(0) 推荐(0)

Codility----MaxCounters

摘要: Task description You are given N counters, initially set to 0, and you have two possible operations on them: increase(X) − counter X is increased by 1 阅读全文

posted @ 2017-04-28 00:04 Hugh_Sun 阅读(287) 评论(0) 推荐(0)

导航