Search
⌘K

Leetcode 3166. Calculate Parking Fees and Duration

Given timestamped entry/exit logs per vehicle, aggregate each car's total parked duration (treat missing exit as 23:59), then compute fees using a base time/base fee plus incremental unit time/unit fee with ceiling division. Key tasks: time parsing and arithmetic, grouping by car ID, handling unmatched entries, and outputting fees ordered by car number.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.