Hi guys, here I'm not asking what's NULL pointer, otherwise I'm asking why I need to consider NULL case once I solve a problem?
lets assume I have tree and I want to traverse through it, so why in my code I should consider the case that the "root" == "NULL" which mean in the case that I don't have a tree .. but we logically assume that we have tree, otherwise I wouldn't write a code ...
so any help to understand why I need to take care and consider the case of NULL in my cases to solve the problem?
another question, when they said to solve question, is it means to solve it with all its cases? or can I assume assumption while solving?!
thanks alot