filmov
tv
Inside the programming MATRIX: Leetcode problem #1030, Matrix Cells in Distance Order

Показать описание
Hello, my name is Karthik! In today's video, I am going to be taking a look at Leetcode problem 1,030, which is titled Matrix Cells in Distance Order. This is a bit of a return for me to easier Leetcode problems, as the medium problems have been quite difficult. Enjoy!
My 5 step algorithmic process:
1.Figure out what the problem is really asking you to do (this may take a couple of reading through the problem to figure this out)
2.Draw out/solve some example problems
3.While trying the examples and after finishing, make some observations as to how the problem could be solved (I'm still struggling a lot on this one)
4.Write down pseudocode into the smallest steps possible
5.Translate those steps into code
My 5 step algorithmic process:
1.Figure out what the problem is really asking you to do (this may take a couple of reading through the problem to figure this out)
2.Draw out/solve some example problems
3.While trying the examples and after finishing, make some observations as to how the problem could be solved (I'm still struggling a lot on this one)
4.Write down pseudocode into the smallest steps possible
5.Translate those steps into code