โ† Expedia questions

Right View of Binary Tree and Array Index Difference

Filed under Expedia

The question

Print the right view of a binary tree, and given an integer array A[], find the maximum (j - i) such that A[i] > A[j] and i < j.

No write-up yet. Related questions below have one.

Related Expedia questions

Collected from public candidate posts and coding forums. Updated Nov 2026.