Problem in next permutation

https://ide.codingblocks.com/s/224490 why my test case 4 is failing?

hello @itismohiton
ur if condition should be count==n-1

1 Like