Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 954 Bytes

File metadata and controls

25 lines (16 loc) · 954 Bytes

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])|.