Thursday, July 13, 2017

Difference talk between two algorithms: Leetcode 200 and Leetcode 547

July 13, 2017

Introduction


It is interesting to look into two algorithms: Leetcode 200 and Leetcode 547, what is the difference?
Julia likes to answer the question and see if she can find something to work on later.

The depth first search using recursive function, check deadloop, mark visited node, it is always most short and quick solution.




No comments:

Post a Comment