Wednesday, May 11, 2016

HackerRank – Connected Cell in a Grid - Warm up with Five Practices (III)

May 11, 2016


Being a software programmer, it is easy to spend hours to read and catch up technologies, work on new algorithm, but no coding, one day, or one week, even half month/ month. 

So, warm up like sports. Julia chose the algorithm - Connected Cell In a Grid to warm up for a few hours. 

Last time, less than 1 month ago, Julia did work on this algorithm – connected cell in a grid. And then, she started to warm up again.

Here is one of blogs last practice on April 16, 2016:

Third practice, use DFS – recursive function, which also returns the count.

Question and Answer:
1. What do you like this approach? DFS using recursive function, which returns the count? 

It is easy to write, less error prone; most efficient in time consumption. 

No comments:

Post a Comment