This is a master index of the Codility practice problems I solved in Java. All solutions were unit tested with TestNG and I have included the test code for each solution. All code has been committed to Github.
Lesson 1 – Iterations
BinaryGap
Lesson 2 – Arrays
CyclicRotation
OddOccurrencesInArray
(Odd Occurrences In Array)
Lesson 3 – Time Complexity
FrogJmp (Frog Jump)
PermMissingElem (Permuation Missing Element)
Lesson 4 – Counting Elements
PermCheck (Permuation Check)
Lesson 5 – Prefix Sums
Lesson 6 – Sorting
Lesson 7 – Stacks and Queues
StoneWall
Lesson 8 – Leader
Lesson 9 – Maximum Slice
Lesson 10 – Prime and composite numbers
Lesson 11 – Sieve of Eratosthenes
Lesson 12 – Euclidean algorithm
Lesson 13 – Fibonacci numbers