Introduction
I understand that there is no hard algorithm, only lazy student. I have spent over 10 times to practice Leetcode 10: regular expression matching last eight months. Usually the peer writes a perfect solution and it takes 30 minutes, I experience a lot of good learning experience from those peers.
Last two months I start to write dynamic programming solution as well to solve the problem.
One hour practice
On January 31, 2018 I had a mock interview, and then I spent one hour to be interviewer. The peer wrote a perfect dynamic programming solution. And the peer shared his argument that one time for b* pattern is not necessary in implementation.
Argument to think about
b* can repeat zero time, more than one time. But one time can be covered by zero time and more than one time this two cases.
Here is the transcript I reviewed.
No comments:
Post a Comment