InterviewSolution
Saved Bookmarks
| 1. |
Which node has the lowest priority in a treap?(a) root node(b) leaf node(c) null node(d) centre nodeThe query is from Binary Trees topic in chapter Binary Trees of Data Structures & Algorithms II got this question during a job interview. |
|
Answer» RIGHT choice is (a) ROOT node The best explanation: A root node has the LOWEST priority in a treap SINCE the node’s priority is based on heap order. |
|