You are viewing a single comment's thread. Return to all comments →
Can anyone please point out as to where I am going wrong ? I am finding out the number of swaps involved while sorting the array in ascending order and descending order and then printing out the minimum. Still can't understand my mistake.. Here's my submission link: https://www.hackerrank.com/contests/hourrank-14/challenges/lilys-homework/submissions/code/7634222
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 →
Can anyone please point out as to where I am going wrong ? I am finding out the number of swaps involved while sorting the array in ascending order and descending order and then printing out the minimum. Still can't understand my mistake.. Here's my submission link: https://www.hackerrank.com/contests/hourrank-14/challenges/lilys-homework/submissions/code/7634222