Solution of Codility
codility.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
Lesson 4: Sorting
- MaxProductOfThree: *
- Distinct: *
- Triangle : ** C++ Solution
- NumberOfDiscIntersections: *** C++ Solution
Lesson 5:
- Brackets: * C++Solution
- Nesting: * C++Solution
- StoneWall: ** C++Solution
- Fish: ** C++Solution
Lesson 6:
- EquiLeader: * C++Solution
- Dominator: * C++Solution
Lesson 7:
- MaxProfit: ** C++Solution
- MaxSliceSum: ** C++Solution
- MaxDoubleSliceSum: ** C++Solution
Lesson 8:
- MinPerimeterRectangle: * C++Solution
- CountFactors: * C++Solution
- Peaks: ** C++Solution(one case get wrong answer)
- Flags:*** No Solution now
Lesson 9:
- CountSemiprimes: ** C++Solution
- CountNonDivisible: ** C++Solution (not fast enough)
Lesson 10:
- ChocolatesByNumbers: * C++Solution
- CommonPrimeDivisors: ** C++Solution
Lesson 11:
- Ladder: * C++Solution(still have some problem)
- FibFrog: ** C++Solution