← Google questions

Count special paths in an n-ary tree

Filed under Google

Given an n-ary tree with node values, count the number of special paths where each node is visited once, start and end node values are equal and non-equal to each other (or follow specific value…

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 Google questions

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