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.
I passed all the test cases except Test cases numbered 7, 8, 15, 16, 17 which are giving a 'Segmentation Fault' error. But after manually testing the aforementioned testcases on my system, I am able to get the desired results.
Can't really figure out a way out of these segmentation errors.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Cut the Tree
You are viewing a single comment's thread. Return to all comments →
Brilliant problem!
I passed all the test cases except Test cases numbered 7, 8, 15, 16, 17 which are giving a 'Segmentation Fault' error. But after manually testing the aforementioned testcases on my system, I am able to get the desired results.
Can't really figure out a way out of these segmentation errors.