
Codility
文章平均质量分 73
追梦船
机器学习,自然语言处理方向的小菜鸟
展开
-
Solution to Triangle by Codility
question: https://codility.com/programmers/lessons/4 we need two parts to prove our solution. on one hand, there is no false triangular. Given the array has been sorted, if A[i]+A[i+1]>A[i+2]原创 2015-06-02 22:01:21 · 1393 阅读 · 0 评论 -
Solution of NumberOfDiscIntersections by Codility
question:https://codility.com/programmers/lessons/4 trap: int overflow code: #include int solution(vector &A) { // write your code in C++11 int size = A.size(); if (size <2)原创 2015-06-02 23:19:54 · 2040 阅读 · 0 评论 -
the solution of CountNonDivisible by Codility
question:https://codility.com/programmers/lessons/9 To solve this question , I get each element's divsors which appearing in input Array A using Sieve of Eratosthenes method. Time complexity is O原创 2015-06-03 22:32:23 · 1268 阅读 · 0 评论 -
Solution of Codility
Solution of Codilitycodility.com is another great place to improve your programming skill. Train myself , and record here.Lesson 1: Time Complexity Lesson 2: Counting Elements Lesson 3: Prefix Sums原创 2015-06-02 22:05:33 · 2448 阅读 · 0 评论