Databricks logoDatabricks
Coding·55 minMembers

Fibonacci Tree Path

Members only

Given a Fibonacci tree order `k` and two preorder node labels `a` and `b`, return the path between those nodes without constructing the exponentially large tree.

SWE
tree
recursion
math
medium
Frequency
Medium
Last asked
2026-04-01
Stage
phone-screen · onsite-coding

Log in to continue reading the full content