Skip to content

cofirazak/hyperskill-Problem-SimulatingAClock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

This is a code challenge from JetBrains Academy.

Link to the problem challenge.

Task description:

You are given a class Clock.
It has two int fields: hours and minutes.
The clock has a minute scale from 0 to 59 and an hour scale from 1 to 12.
The clock does not know whether it's day or night (no AM or PM).

Implement the method next that increases the value of minutes by 1.
The minutes must be reset to zero when the current hour ends.
Do not forget to change hours as well.

Image description

Why this repo here?

Like this concise solution and test.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages