← Questions

Path between two nodes of an implicit Fibonacci tree

0
DatabricksCodingLast asked Oct 2026

A coding interview question asked in Databricks's algorithms (two rounds) round, last asked Oct 2026. It tests trees, recursion and lowest common ancestor.

A Fibonacci tree of order k is a binary tree defined recursively: The nodes of a tree of order n are labeled 0, 1, 2, ... in preorder (root, then the left subtree, then the right subtree). Return the shortest sequence of moves from node…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

trees · recursion · lowest common ancestor · math

Your code and the AI tutor open when you unlock this question.