Battery and Supercharger Array Movement Problem

Asked atFlexport
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. 01Ask for positions, movement cost, capacities, and objective.
  2. 02Define state variables such as index, charge, and upgrades used.
  3. 03Determine whether moves are deterministic, greedy, or branching.
  4. 04Use simulation for fixed choices or DP for competing choices.
  5. 05Validate unreachable and boundary states.

Reference answer

Then expect these follow-ups

  • Which detail determines whether shortest path is needed?

    Tests: follow-up reasoning

  • How would you prune dominated battery states?

    Tests: follow-up reasoning

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

Battery and Supercharger Array Movement Problem