← Swiggy questions
CodingMedium

Binary Search Trees, LCA, and Gas Station

Filed under Swiggy

Solve three distinct problems: 1) Count unique BSTs for N nodes using Catalan numbers. 2) Find the Lowest Common Ancestor (LCA) in a Binary Tree. 3) Solve the Gas Station problem: find the starting…

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

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