[NEW] LeetCode Online Judge Questions/Answer List

Note:

This post listed the questions in the same order of leetcode website. 
The links to the answer posts is added for your convenience.

I revisited all the questions again and also have modified/updated analysis and code for many of them. Several easier implementations or easier understanding analysis have been added. 



NEW!!!~ I am starting to add Python Code for the leetcode problems.  





LeetCode Online Judge Questions/Answer List

  • Single Number II
  • Scramble String   (Difficlut problem, 3D DP might work)


5 comments:

  1. Replies
    1. Haha, it is an easy way to stay the index post in the front ! : )

      Delete
  2. Hi Yu,
    It looks like two problems point to the same solution:
    Regular Expression Matching
    Wildcard Matching

    Problem statements look similar but approaches are different.
    At very least consider the following case:
    Regex: isMatch("aab", "c*a*b") -> true
    Wildcard: isMatch("aab", "c*a*b") - false

    Please revisit :)

    ReplyDelete
    Replies
    1. Thank you very much for your reply !
      I have checked the problem and it is different from the wildcard problem as you mentioned.
      I have posted the new answer, please check it out.

      http://yucoding.blogspot.com/2013/12/leetcode-question-regular-expression.html


      Thanks!

      Delete