“Premature Optimization is the Root of All Evil” — I never knew this quote by Donald Knuth until recently when Sathya (@ HeyMath!) told me this !! And today, I realised the meaning of this statement and I have to accept this one !! I was coding a program to do DFS on a not so straightforward input. I tried to do it in an elegant manner and ended up with a wrong solution. Thats when this quote struck me in my head. So, scrap the work, start afresh !! Then did a straightforward coding of what is required and it came out pretty good actually, though I am not much sure of the time complexity, yet.