R.A.N.K.A.'s blog

By R.A.N.K.A., history, 4 years ago, In English

I am not able to point out my mistake in this code Can someone help me out to debug my code

Submission

I tried to solve this problem using centroid decomposition methed explained in this editorail :- editoial

Thanks in advance!.

  • Vote: I like it
  • +3
  • Vote: I do not like it

»
4 years ago, # |
  Vote: I like it +19 Vote: I do not like it

Thank you guys!

I have finally debugged my code after continuous effort of 4 hours here is the code of Accepted Solution

There was very minor change in my new code

On line no 96 I changed

from print(u) to print(centroid); Once again Thank you all of you!!