Next permutation question

I unlocked the editorial and it is showing some other code

hello @soumyabhardwaj75

in the ediotorial , they are coding next permuation function from the scratch.
if u want to do it using stl then refer this code->

Can we use stl while attempting placement exams ?

…

yeah in online rounds,most of the companies allow usage of stl

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.