DIY: Next Permutation

Solve the interview question "Next Permutation" in this lesson.

Problem statement

Given a list of numbers, you have to rearrange these numbers into ...

Access this course and 1400+ top-rated courses and projects.