2017年4月29日

Codility---MaxProductOfThree

摘要: Task description A non-empty zero-indexed array A consisting of N integers is given. Theproduct of triplet (P, Q, R) equates to A[P] * A[Q] * A[R] (0 阅读全文

posted @ 2017-04-29 08:30 Hugh_Sun 阅读(248) 评论(0) 推荐(0) 编辑

Codility--- Triangle

摘要: Task description A zero-indexed array A consisting of N integers is given. A triplet (P, Q, R) is triangular if 0 ≤ P < Q < R < N and: A[P] + A[Q] > A 阅读全文

posted @ 2017-04-29 07:53 Hugh_Sun 阅读(574) 评论(0) 推荐(0) 编辑

Codility--- Distinct

摘要: Task description Write a function class Solution { public int solution(int[] A); } that, given a zero-indexed array A consisting of N integers, return 阅读全文

posted @ 2017-04-29 07:22 Hugh_Sun 阅读(348) 评论(0) 推荐(0) 编辑

导航