Euler Tour 3 Tin and Tout values

Sir In the video we are calculating the tin and tout values
by tin[node] = ++timer; tout[node]=timer; where timer=0;

But what is wrong if we put timer value as 1 and we calculate tin and tout values like this
tin[node] = timer++
tout[node] = timer.

there may be other errors but i don’t know the problem hence can’t say about them but if you simply see for the leaf nodes tin[leaf_node] and tout[leaf_node] should be same but if you use timer++ tout[leaf_node] will be one unit more than tin[leaf_node].

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.