Рет қаралды 9,214
In this video, we're going to be solving my absolutely number 1 hated problem on the entirety of Leetcode: Next Permuration (LC # 31).
This problem is an absolute abomination. There's absolutely no chance you ever solve this without either a 200 IQ or having seen it before. I understand how it works, I can't prove to you why it does, but don't question it, just memorize the solution and be on your way. This is the worst problem...