Amazon Interview QuestionBackend Developers
- 0of 0 votes
Given an integer n (say somewhere between 100 and 1000), you want to generate a random binary tree having exactly n nodes. You are only interested in the structure of the tree. Each structurally unique tree should ideally have the same chance of being generated.
Country: United States