Tuesday, February 6, 2018

Leetcode 214: Shortest palindrome (I)

Feb. 6, 2018


Introduction


It is hard level algorithm and I like to learn the algorithm. It is called Shortest palindrome.

30 minutes thinking


Since the algorithm is hard level, I plan to practice at least 10 times. Today I spent 30 minutes to thin k about the solution, and address possible issues in the brute force solution.

Follow up

Feb.15, 2018

I did spend over 30 minutes to read the discussion, and then wrote C# solution based on Java code. I did not fully understand KMP algorithm yet.


No comments:

Post a Comment