We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
try to print the vector f of the editorial , for cut = 2 and node = 4 it is givin ans 1 but actually this is not expected . it should not be 2 ? because we can remove 3 and 4 both by two cuts ? any comment ??
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Tree Pruning
You are viewing a single comment's thread. Return to all comments →
try to print the vector f of the editorial , for cut = 2 and node = 4 it is givin ans 1 but actually this is not expected . it should not be 2 ? because we can remove 3 and 4 both by two cuts ? any comment ??