Friend Circle Queries

  • + 0 comments

    Has anyone solved this, using disjoint sets, in Go or Python? My Go benchmark using Test 10 takes 2 seconds, yet that test fails when I submit my code.

    My Python code is also correct, but runs out of time on Test 10.

    I'd hate having to rewrite this in C++.