Super Mancunian

  • + 0 comments

    Finally I solved it. It took a few days to understand that several tests failed for timeout because I was using a slow implementation of UnionFind O(N). As soon as I switched to QuickUnionUF O(logN) all the tests became green.

    http://vancexu.github.io/2015/07/13/intro-to-union-find-data-structure.html