← Amazon questions

Height of a binary tree with leaves forming circular DLL

Filed under Amazon

Find the height of a special binary tree where each leaf is connected to adjacent leaves in a circular doubly linked list fashion. Must achieve O(n) time and O(1) space complexity.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

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