Highway Toll Fee From Checkpoint Logs

Asked at Apple · Coding & Leetcode-style Questions · Difficulty: Medium

A highway has multiple checkpoints. Each time a vehicle passes a checkpoint, a log record is generated containing:

Loading the problem…