My solutions to the Codality Practise lessons https://codility.com/programmers/lessons/
Swift
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
1-Iterations/1-Iterations.playground
2-Arrays
3-TimeComplexity
README.md

README.md

Codality Timed Algorithm Practise Solutions

My attempts at the timed programming challenges here https://codility.com/programmers/lessons

Lessons:

Iterations

  1. BinaryGap (score: 80%) Find longest sequence of zeros in binary representation of an integer.

Arrays

  1. CyclicRotation (score: 100%) Rotate an array to the right by a given number of steps.

  2. OddOccurrencesInArray (score: 100%), Find value that occurs in odd number of elements.

Time Complexity

  1. FrogJmp (score: 100%) Count minimal number of jumps from position X to Y.

  2. TapeEquilibrium (score: 100%) Minimize the value |(A[0] + ... + A[P-1]) - (A[P] + ... + A[N-1])|.