• + 0 comments

    I found that the O(n^2) solution timed out in Python, but worked fine in C. Not sure why.