← All questions
Coding
Battery and Supercharger Array Movement Problem
Asked at
Flexport
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+
- 01Ask for positions, movement cost, capacities, and objective.
- 02Define state variables such as index, charge, and upgrades used.
- 03Determine whether moves are deterministic, greedy, or branching.
- 04Use simulation for fixed choices or DP for competing choices.
- 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
Next question