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

Hiring now

Flexport has 115 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.
  • Software Engineer II, Autonomous Freight Technology

    Bellevue, Washington, United States

  • Software Engineer II, DevEx

    Amsterdam, Netherlands

  • Staff Software Engineer, DevEx

    Amsterdam, Netherlands

Or practice this question first

Next question