Originally Posted by shabbir
If its a puzzle or some kind of competition let it know and I would move it to the right forum
That is algorithm design(Data Structure(Graph theory)only). It's not a puzzle. But in algo design it can come to puzzles as well as Data structure(C) section. But This is not for comptetion, it's tinny probs.