Your code is too slow. It's O(n²); you need better than that. This isn't 3kyu for nothing.
O(n²)
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
Your code is too slow. It's
O(n²)
; you need better than that. This isn't 3kyu for nothing.This comment is hidden because it contains spoiler information about the solution