My code is running perfectly fine on IDE but not passing the single test case .Please Let me know the error
Print Range Problem In BST
Consider input:
1
10
14 17 7 18 12 5 4 6 21 24
11 17
Expected o/p:
’ # Preorder : 14 7 5 4 6 12 17 18 21 24
’ # Nodes within range are : 12 14 17
Your o/p:
’ # Preorder : 14 7 5 4 6 12 17 18 21 24
’ # Nodes within range are : 14 17
You can refer this https://ide.codingblocks.com/s/263010 and try to correct.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.