← All questions
Coding
2 Coding Questions Related to Tree , Graph and apply DP for that
Asked at
Nutanix
1Give yourself 5 minutes
2Answer out loud, not in your head
3Then compare with the answer below
0
Stuck? Show a way to structure it+
- 01State that no concrete input-output problem is provided.
- 02Ask for constraints, graph properties, and objective.
- 03Identify likely families such as tree DP or DAG DP only after clarification.
- 04Explain how the chosen state would follow from the clarified objective.
Reference answer
Then expect these follow-ups
What questions would you ask first?
Tests: requirements gathering
Give a tree-DP example once the objective is maximum independent set.
Tests: state design
Free to read · better with Enzo
Practice this out loud with Enzo
Enzo runs it as a mock interview, pushes back with follow-ups, and grades you on the rubric.
Next question