Category: Solutions
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) …
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 …
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 …
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/
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 …
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 …