Hello Thinkers,
This is one of the problems from May Long Challenge, I have some different approach from the given editorial.
I used the approach of ‘Minimum swaps to sort an Array’, modified it a little bit and it worked like a charm. ![]()
You can watch my approach
- CodeChef - Triple Sort
Hope this helped you guys. ![]()