<r>It doesn't work either :s (had to do a small tweak to make it work since it has an issue with edge cases like no ropes passed in, etc), it is correct but has scalability issues. if you want to play around (and get detailed outputs) you can go here <URL url="https://codility.com/programmers/custom...