can anyone please explain how to approach this question using stl
Next permutation approach daught
using stl
simply use next_permutation() function
for this function details see doucumentation
why you are printing only 3 values not the whole vector???
correct ways is shown below
like this
if you want to ask something about this feel free to ask
i hope this helps
if yes show your response with
and don’t forgot to mark doubt as resolved