IT gives me wrong ans even if i use next_permutation function of the algorithm library.
ques link: https://hack.codingblocks.com/contests/c/547/361
sol link:
https://ide.geeksforgeeks.org/tIyHKmMxco
Getting wrong answer in last test case. is the question incomplete
Ty but, the next_permutaion_function was failing why?