← Microsoft questions

Validate BST, LCA in BST, and Reverse Pairs in Linked List

Filed under Microsoft

Perform three operations: 1) Check if a binary tree is a valid Binary Search Tree (BST). 2) Find the Lowest Common Ancestor (LCA) of two nodes in a BST. 3) Reverse every two adjacent nodes in a linked…

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

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