Thursday, August 30, 2018

Leetcode 717. 1-bit and 2-bit characters

August 30, 2018

Introduction


It is an easy level algorithm using dynamic programming solution. I stumbled on the solution a few times, I had to fix bugs three times in order to pass online judge.

The algorithm is my favorite one now. I know that the algorithm practice is also good training for me. Sometimes I notice that I need more training to understand the statement "the last character must be a one-bit character". I failed a few times since I did not memorize the requirement, I confused that the expression is valid to express the number.

My practice


I like to write something to share my practice. Here is Leetcode discuss link.


No comments:

Post a Comment