Optiver Interview Question
OptiverSoftware Engineer Interview
Given a list of tuples (AB, BC, AD, BE, CF) build a binary tree and see if it is a valid tree. There’s five different types of errors you have to check for: Input is in the right format, no duplicate nodes, root only has 2 children, every node is in the tree, no cycles in the binary tree).
Unlock the Full Solution
Enter your email to get instant access to the complete solution, explanation, and similar practice problems.