10000 Update Codewars/Human readable duration format/README.md · Tamada4a/Algorithms@29befbb · GitHub
[go: up one dir, main page]

Skip to content

Commit 29befbb

Browse files
authored
Update Codewars/Human readable duration format/README.md
1 parent bb6ff69 commit 29befbb

File tree

1 file changed

+3
-3
lines changed
  • Codewars/Human readable duration format

1 file changed

+3
-3
lines changed

Codewars/Human readable duration format/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ The function must accept a non-negative integer. If it is zero, it just returns
77
`years`, `days`, `hours`, `minutes` and `seconds`.
88

99
It is much easier to understand with an example:
10-
```
10+
<pre>
1111
* For seconds = 62, your function should return
1212
"1 minute and 2 seconds"
1313
* For seconds = 3662, your function should return
1414
"1 hour, 1 minute and 2 seconds"
15-
```
15+
</pre>
1616

1717
**For the purpose of this Kata, a year is 365 days and a day is 24 hours.**
1818

@@ -33,4 +33,4 @@ Different components have different unit of times. So there is not repeated unit
3333
A component will not appear at all if its value happens to be zero. Hence, `1 minute and 0 seconds` is not valid, but it should be just `1 minute`.
3434

3535
A unit of time must be used "as much as possible". It means that the function should not return `61 seconds`, but `1 minute and 1 second` instead.
36-
Formally, the duration specified by of a component must not be greater than any valid more significant unit of time.
36+
Formally, the duration specified by of a component must not be greater than any valid more significant unit of time.

0 commit comments

Comments
 (0)
0