โ† Walmart questions

Reverse a linked list, tree height and leaf count for a node

Filed under Walmart

Three basic data-structure tasks: (1) reverse a singly linked list, (2) find the maximum height of a binary tree, and (3) count the leaf nodes in the subtree under a given node.

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 Walmart questions

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