← Optum (UnitedHealth Group) questions
CodingReported in a candidate post, Jul 2025

Distance between two nodes of a binary tree

Filed under Optum (UnitedHealth Group)

Given the root of a binary tree with unique node values and two values p and q, return the distance between the nodes holding p and q, measured as the number of edges on the path between them. Return…

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 Optum (UnitedHealth Group) questions

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