Category: Solutions

Missing Integer – Codility 100% Correct Javascript Solution

The Missing Integer problem in the 4th Codility lesson is marked as medium but I think the solution is pretty straight forward. The complexity of my solution is O(N) …

Tape Equilibrium Problem on Codility – 100% Correct Javascript Solution

The Tape Equilibrium problem asks us to find the minimum difference between all the possible splits of an array (the left side minus the right side). It’s a fairly …

PermMissingElem 100% Correct Javascript Codility Solution

This is another simple practice run with a O(n) / O(N * log(N)) solution. Just iterate through the array once and fill an empty array of length N+1 with …

Frog Jump – Codility 100% Correct Javascript Solution

This Forg Jump Codility challenge in lesson 3 is just a simple practice task. A O(1) one-line solution is easy to reach: See the result here: https://app.codility.com/demo/results/trainingB6VKUQ-UST/

Odd Occurrences In An Array – Codility 100% Solution In Javascript

The Odd Occurrences in An Array problem is rather simple. You are asked to find the unpaired element in an array. There can be several pairs of the same …

Codility Binary Gaps

This is a javascript implementation that renders a 100% correct solution of the Codility Lesson 1 challenge – Binary Gaps. I chose a recursive approach to this, and quite …