← Walmart questions

Three coding problems: LCA in binary tree, reverse linked list, unique BSTs

Filed under Walmart

Solve three classic problems: find the Lowest Common Ancestor (LCA) in a binary tree, reverse a singly linked list, and calculate the number of unique Binary Search Trees (BSTs) possible with N nodes.

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.