We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Sorting
- Lily's Homework
- Discussions
Lily's Homework
Lily's Homework
Sort by
recency
|
258 Discussions
|
Please Login in order to post a comment
Python 3
Welp, I finally got to use these Hackos. Now, lets hang out!
Just sort and count number of swaps required to get the sorted array For some test cases reverse of sorted array gives minimum swaps. So I have calculated swaps for both sorted ones and its reverse
why is this incorrect :
js