Tuesday, June 5, 2018

Leetcode 122: Best time to buy and sell stock II

June 5, 2018

Introduction


One of best things to do is to follow my coach. I spent 10 minutes to review the algorithm called Leetcode 122  Best time to buy and sell stock II. I| wrote a blog for this review.

Algorithm


Here is the gist I created for the algorithm.

I have a mock interview to work with a young graduate with five years work experience as a recruiter, she took some coding boot camp.

The interviewee did very good. I tried to explain to her that the code she wrote is not very readable, too complicated and can be simplified.

I let her advance to next round.



No comments:

Post a Comment