Thursday, June 14, 2018

Leetcode: Sequence reconstruction

June 14, 2018

Introduction


It is one of Leetcode algorithm called sequence reconstruction. I spent over 30 minutes to think about the solution, I did come out the topological sort; and then I think about possible edges 1000, so possible edges can be one million. It is very interesting algorithm to work on.

Create a gist first


I like to create a gist first for my study, so I can easily find problem statement, and also some of ideas to solve the problem. I chose to use this blog as the source.

No comments:

Post a Comment