Mandragora Forest

  • + 0 comments

    time complexity for my code is N*lg(N) there are T number of test cases, So overall running time for one input set should be T*N*lg(N). In worst case it will be (10^5)(10^5)(lg(10^5)) > 10^10 but my code still running fine can somebody please explain it.