LeetCode Question · Feb 2018

Facebook | Phone Screen | Cartesian tree

5 upvotes 2,537 views 7 replies

Question Details

Given an integer array, create a tree with following properties: a. Binary tree b. Min tree (heap) c. In order traversal return original array. For eg: 1. [1, 2, 3, 5] Output: 1 \\ 2 \\ 3 \\ 5 2. [5,...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays Binary Tree Heap