Lily's Homework

  • + 1 comment

    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