How to Make a Huge Binary Tree in O(1)
dailycodingproblem.com