Next permutation algorithm - Javascript (leetcode 31)

preview_player
Показать описание
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.

Рекомендации по теме
Комментарии
Автор

You're a beast bro, this problem is a headache, I can't believe its commonly asked on interviews.
You broke it down perfectly.

symbol
Автор

Easy solution to understand and remember thank you brother for making it.

m.z
Автор

Thank you for your explanation. This is the easiest solution I can follow.

sophiali-CBR-AU
Автор

Thanks for the video, simple and easy to follow!

mehranjanfeshan
welcome to shbcf.ru