You are viewing a single comment's thread. Return to all comments →
I think,it can be solved using only disjoint set data structure,without any binary search.Although I got wrong answers in 2 test cases.
Seems like cookies are disabled on this browser, please enable them to open this website
Jim and his LAN Party
You are viewing a single comment's thread. Return to all comments →
I think,it can be solved using only disjoint set data structure,without any binary search.Although I got wrong answers in 2 test cases.