Monday, July 23, 2018

Leetcode 132: Palindrome partition II

July 23, 2018

Introduction


It is hard level algorithm and it is very interesting problem. I spent over one hour to study all the discussions but I am not sure if I understand the problem.

I found one video and then finally I understood the min cut meaning. Here is the video I really figured out the problem.

My practice


I like to read two discussion. One is here. The second one is here.

This video teaching is an excellent one. And the source code is here. I will write one using C# as well.


Time spent


9:00 PM - 11:28 PM

I could not believe that I had luxury to spend over two hours on this algorithm.


No comments:

Post a Comment