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.
Sample 1 - it can be for any node. As mentioned - if there are multiple answers, you can print just one. But I came to discussion forum for the sample 2 itself. Why an extra edge?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Black and White Tree
You are viewing a single comment's thread. Return to all comments →
Sample 1 - it can be for any node. As mentioned - if there are multiple answers, you can print just one. But I came to discussion forum for the sample 2 itself. Why an extra edge?