Saturday, March 24, 2018

Being interviewer: Leetcode 54: Spiral matrix

March 24, 2018

Introduction


One thing I do very good is to treat myself very well. Specially on learning an algorithm. I am like a super talent algorithm teacher, I teach myself first. What I do is to reach out top-talent people in Sillicon valley and also pacific area, and then figure out how they learn the algorithm in 30 minutes mock interview.

One algorithm I ask over 14 time is called Leetcode 54: Spiral matrix.

Code review


Here is the Java code I reviewed on February 1, 2018 mock interview. It is such a beautiful solution, using direction array and also use extra space to mark visited.


No comments:

Post a Comment