You are viewing a single comment's thread. Return to all comments →
no, took care of those cases by normalizing it and than used minimum cycles approach to solve the problem.
It was not running intially because there were some print statements in between and it took me three days to figure out that this was the problem.
Advice: don't leave any debug print statemnts in between, even if the code is not atall depending on them(like in this case)
Minimum Swaps 2
You are viewing a single comment's thread. Return to all comments →
no, took care of those cases by normalizing it and than used minimum cycles approach to solve the problem.
It was not running intially because there were some print statements in between and it took me three days to figure out that this was the problem.
Advice: don't leave any debug print statemnts in between, even if the code is not atall depending on them(like in this case)