Loading...
Engaged Employer
Implement binary search.
Anonymous
Ah, yes. I found the binary....
struct treeNode { int val; struct treeNode *left; struct treeNode *right; }; struct treeNode *find(struct treeNode *p, int val) { if (val val) return find(p->left, val); else if (val > p->val) return find(p->right, val); else return p; }
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.