Compute shortest path between two tree nodes
Company: Snowflake
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: Medium
Interview Round: Onsite
Quick Answer: This question evaluates understanding of tree algorithms and preprocessing techniques for efficient path queries, along with robustness in handling missing or duplicate node values and very deep trees.