LeetCode Spiral Matrix Solution Explained - Java

preview_player
Показать описание


Preparing For Your Coding Interviews? Use These Resources
————————————————————

Other Social Media
----------------------------------------------

Show Support
------------------------------------------------------------------------------

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

Now I understand where those ifs come from. Thank you!

dediprakasa
Автор

I live how you explain so thoroughly and use brute force thats understandable and not too optimal to get! Thanks!!

atift
Автор

Of all the videos I watched so far, this one is well explained.

jugsma
Автор

thanks for helping me understand how to solve this problem!!

strawberriesandcream
Автор

I dont know anything about coding but the coco powder almonds are really good! Thanks for the suggestion Nick!!

codingchey
Автор

Great.... Thumbs up to the clearity of your explanations!

sahilanower
Автор

Thanks this is great explanation and variable naming!

devyanigera
Автор

very well explained especially descriptive variable names make it easier

samermazraani
Автор

Really great video. Helped a lot to understand the problem and look for a solution. I was able to solve it using the approach you showed in rotating the matrix.

PssGameplayER
Автор

Good one! It made it very easy! Thank you

flamboyanz
Автор

I like how you use descriptive variable names instead of i and j

abisoyelawal
Автор

It's a fun problem. Thanks Nick 😊

lifeofme
Автор

I attempted to do it in a single loop, with some logic to decide what direction the spiral is moving. It works but took me a while and doesn't perform as well as the above.

MichaelSalo
Автор

great work, what's the time complexity?

nathann
Автор

what a nice explaination thanks a ton brother. please keep making such videos.

satyamgupta
Автор

What is the time and space complexity for this solution?

kashafmujeeb
Автор

That was very understandable.. Thank you

sauravbharti
Автор

So cool idea!
Thank you a lot for your efforts!!!

Zetta_
Автор

can u explain the if check inside whike loop

GuitaristVoyage
Автор

better than that in geeksforgeeks(where I had left comment to use self descriptive var names would do well) which was better than that of code school where I disliked the logic & var names

dhruva