Saturday, March 3, 2018

Leetcode 494: Target Sum

March 3, 2018


Introduction


It is so hard to find time to practice new algorithm. Even I work on the algorithm, I also like to try to figure out the algorithm by myself instead of looking up the discussion.

Algorithm practice

First I spent over 30 minutes to go over the discussion, and understood the algorithm with the analysis first. In order to practice better, I also created my own gist, so I can go over word by word, and then read the code line by line. Here is my gist to take notes for the discussion.

Here is the C# practice based on one of discussions.


No comments:

Post a Comment