What is next permutation?

Can you explain what does lexicographically greater permutation means, in both integers and characters?

hi @RishabhK
so basically it means that u have to find the permutation of the given string which is lexicographically greater than the input string…
u can read more about it at https://www.geeksforgeeks.org/find-the-next-lexicographically-greater-word-than-a-given-word/

@RishabhK
is there anything else??

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.