Been there, done that. What's your answer?
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Nope. Show some effort if you expect help with your homework.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
A hint, read the definition of a binary tree, then see how it applies to the trees's children.
firstPerson
Senior Poster
3,923 posts since Dec 2008
Reputation Points: 841
Solved Threads: 608
That sounds correct (assuming you've defined a BST accordingly).
If you want to be really anal you should explicitly point out that S is a binary tree.
Rashakil Fol
Super Senior Demiposter
2,658 posts since Jun 2005
Reputation Points: 1,135
Solved Threads: 177