LEETCODE 54 (JAVASCRIPT) | SPIRAL MATRIX | CODING INTERVIEW PREP

preview_player
Показать описание
Spiral Matrix solution: Leetcode 54 (Javascript)
Комментарии
Автор

I appreciate that you kept the debuggining process in. Makes me feel better about making mistakes :)

natebland
Автор

Thanks for this great solution video. one question, why check if result.length is less than size for every direction change ? Thank you

KW-dsze
Автор

You got a subcriber today ! Thanks man !😊

theadtya
Автор

Since the matrix is m x n the time and space complexity would be O(mn).

TylerKaihara
Автор

Great job! But i didn't understand the last loop. If the bottom after all those previous iterations is now 1 and the top is 1 too, how does that last loop run twice? Because 1 can't be greater than 1 nor 0 can be greater than 1? Could you please, explain?

DilmanzZ
join shbcf.ru