# TLE in Nutella Path Unit when using Binary Lifting

solution , this is my solution for the question Nutella Path Unit .
The link to the question is ENOC1 .
I am not able to understand whats going wrong as i feel the approach should be quick enough. Please suggest some changes .

problem is in this line

void dfs(ll ind,vector<ll> x[],vector<ll> y,ll z,ll par,ll lev){


you are copying vector<ll> y everytime.

2 Likes

thanks a lot , changing that part worked

1 Like