2 Coding Questions Related to Tree , Graph and apply DP for that

Asked atNutanix
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+
  1. 01State that no concrete input-output problem is provided.
  2. 02Ask for constraints, graph properties, and objective.
  3. 03Identify likely families such as tree DP or DAG DP only after clarification.
  4. 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

Hiring now

Nutanix has 109 open roles right now

landed applies to roles like these for you, on each company’s own site, with answers written for the role.

Get 5x interviews10 free auto-applies. No card.
  • Senior Engineering Manager

    Vancouver, British Columbia

  • Advisory Enterprise Account Manager

    Remote

  • Advisory Public Sector Account Manager

    5 Locations

Or practice this question first

Next question