I was trying a code in python.I already did it in c++.
but it keep showing me error - IDEONE
There’s no problem with the logic(the same algo worked in c++)
There’s some problem with my python implementation
Here’s the question-SPOJ
I was trying a code in python.I already did it in c++.
but it keep showing me error - IDEONE
There’s no problem with the logic(the same algo worked in c++)
There’s some problem with my python implementation
Here’s the question-SPOJ
The error is just due to the small mistake in line 34
Just replace mn[i]=int(min(mn+mn[right])) to mn[i]=int(min(mn,mn[right]))
That was embarrasing. Thanks for your help