← Morgan Stanley questions
CodingMedium

Maximum product path in hierarchical block structure

Filed under Morgan Stanley

Given N blocks connected hierarchically as a tree, with each block having a point value, find the maximum product of collected block points along any valid path starting from a specified node S and…

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 Morgan Stanley questions

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