โ† Amazon questions
CodingReported in a candidate post, Jul 2025

Nth specific node in B-tree during inorder traversal in O(1)

Filed under Amazon

The question

Given a B-tree with two types of nodes A and B, return the nth A or nth B node while doing an inorder traversal in O(1) time, and write pseudo code on paper.

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

Related Amazon questions

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