← Microsoft questions

Longest path with consecutive increasing integers in N-ary tree

Filed under Microsoft

Given an N-ary tree, find the length of the longest top-to-bottom path containing consecutive integers in increasing order (where each child's value is parent's value + 1).

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

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