Problems > Clock Plus K Minutes > Editorial

Clock Plus K Minutes — Solution & Editorial

Back to the Problem

Convert to total minutes, add K, reduce modulo 1440, convert back.

Complexity: O(1)