Spiral Matrix - Leetcode 54 - Python - Short

preview_player
Показать описание
FAANG Coding Interviews / Data Structures and Algorithms / Leetcode
Рекомендации по теме
Комментарии
Автор

Master Data Structures & Algorithms For FREE at AlgoMap.io!

GregHogg
Автор

any 2D array can you transform to 1D array, row or vector in one cycle

mrstanlez
Автор

Hi sir, I have started DSA and it's been 1 month, i have solved a few questions too on leetcode but once I solve it after a few days i forget the procedure and approach what should I do??

VanisreeSunkara
Автор

If you start the wall on the top row you're moving through a wall every step. Why not just move the wall once you reach the right wall, etc.

MeerWulf
Автор

How is Space O(1) if you allocate another array with m*n elements?

strahinjamijajlovic
Автор

What’s a RL agent policy function for the same??

arunamalla
Автор

Why not take a simpler approach? Pop the first line, then rotate the remaining matrix 90° anti-clockwise, and pop the first line again. Repeat this until nothing is left to pop

shehryarkhan
Автор

could you please explain code in c++ ?

infinitymi-abhishekmishra