Robot Grid Path with Charging and Lexicographic Optimization
CodingPhone, OnsiteSoftware EngineerReported Sep, 2026
Company question banks are included with the Insider plan.
You are given a rectangular grid as an array of strings. Each cell is S (start), D (destination), . (traversable), C (charging), or # (blocked).
A robot starts at S with a full battery of...