You are viewing a single comment's thread. Return to all comments →
I have doubt about this 2 lines of code
index_dict[v] = to_swap_ix
index_dict[correct_value] = i
What is this 2 lines of code actually doing? what will happen if I dont include this 2 lines? Thank you in advance
Seems like cookies are disabled on this browser, please enable them to open this website
Minimum Swaps 2
You are viewing a single comment's thread. Return to all comments →
I have doubt about this 2 lines of code
index_dict[v] = to_swap_ix
index_dict[correct_value] = i
What is this 2 lines of code actually doing? what will happen if I dont include this 2 lines? Thank you in advance