Deviopath › Swift

Minutes to Clock

Easy · Numbers

/ on Int truncates. % is the remainder. Pad minutes with String(format: "%02d", m) or a manual check.

Write clock(_:) that turns 75 into "1:15". Hours are not padded.

Next: Weekday Name