Fix a BST with two misplaced keys
Company: TikTok
Role: Machine Learning Engineer
Category: Coding & Algorithms
Difficulty: Medium
Interview Round: Technical Screen
Quick Answer: This question evaluates understanding of binary search trees, in-order traversal invariants, and in-place detection and correction of two swapped keys without altering tree structure.