If you have ever played around with Algorithms & Data Structures, then you most likely have heard of Leetcode.com, which contains a number of famous (or infamous) of technical questions. One of my favorite in there is the graph clone question, which can be shortly stated as:
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.
Like most ... [Read more...]