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 am stuck at test cases 1,2,5,6,11 and 13. I am trying to check if the left sub nodes are smaller than the current and the right subnodes are greater than the current in a recursive way. If anyone has gone through the same, could you help me out?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Is This a Binary Search Tree?
You are viewing a single comment's thread. Return to all comments →
I am stuck at test cases 1,2,5,6,11 and 13. I am trying to check if the left sub nodes are smaller than the current and the right subnodes are greater than the current in a recursive way. If anyone has gone through the same, could you help me out?