You are viewing a single comment's thread. Return to all comments →
hint: count the number of swap operation needed to sort the given array either in ascending or decenting order. return which one cost less.
Seems like cookies are disabled on this browser, please enable them to open this website
Lily's Homework
You are viewing a single comment's thread. Return to all comments →
hint: count the number of swap operation needed to sort the given array either in ascending or decenting order. return which one cost less.