Total swap required =$1+1+1+1+3=7$
@prajjwal_191 I did not understand how they randomly just swapped the elements in the end
@Hira Thakur your answer is more convincing if we consider the direction from left to right. thankyou
I hope you got it thankyou.
Hey @prajjwal_191 even I got 6 swaps but then the given answer was 7. That is why I had my doubts.
How do you upload a photo so that I can show you ss of their solution??
@amitarp818 while writing in the box you can see lots of icons above.
Use the icon with a square and + symbol (at top row, last 9th column) to upload an image.
@Hira Thakur yupp mistakenly I wrote 17 as 7. Thank you for figuring it out.
64.3k questions
77.9k answers
244k comments
80.0k users