Search
⌘K
Leetcode 2224. Minimum Number of Operations to Convert Time
Given two 24-hour times current <= correct, find the minimum number of operations to reach correct by repeatedly adding 1, 5, 15, or 60 minutes. Equivalently, compute the minute difference and minimize the count of coins with denominations 60, 15, 5, and 1 (greedy choice is optimal).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.