Doubt in Q10 of MCQ Algorithm

shouldnt the answer be bca the cba???

It should be bca -> cba as it is the next permutation of the string bca.

1 Like

but in options it is writen to cab

Yeah it would be cab first then cba. I wrote the first to last values.

1 Like