The Max Profit Codility challenge put me to a solid test in order to find a O(N) solution. In the end I found the following algorithm: I iterated the …
The Max Double Slice Sum was a challenging problem to solve in O(N) complexity. I iterated through the array from both sides finding out at each position the maximum …
The Equi Leader Codility challenge builds on top of the previous Dominator challenge. After we find the leader, we will need to find how many equi leaders there are …