Minimum-Cost Path on a Grid with Fuel and Recharge Cells

Asked at ByteDance · Coding Questions · Difficulty: Hard · Last asked Apr 5, 2026

You are given an `m x n` grid with three parallel arrays plus an integer fuel cap:

Loading the problem…