Ok, here's an algorithm from leetcode. It's marked as medium, but it's actually quite hard if you don't know the tricks it takes. Kind of a gotcha question, I'm guessing. Either way. Hope y'all enjoy it.
Follow me on insta if ya like boxing workout videos: https://www.instagram.com/repo_man_4_...
On this page of the site you can watch the video online Next permutation algorithm - Javascript (leetcode 31) with a duration of hours minute second in good quality, which was uploaded by the user Full Stack Hax 30 June 2020, share the link with friends and acquaintances, this video has already been watched 2,162 times on youtube and it was liked by 37 viewers. Enjoy your viewing!