5 kyu
Human Readable Time
48,537 of 150,082BattleRattle
Description:
Write a function, which takes a non-negative integer (seconds) as input and returns the time in a human-readable format (HH:MM:SS
)
HH
= hours, padded to 2 digits, range: 00 - 99MM
= minutes, padded to 2 digits, range: 00 - 59SS
= seconds, padded to 2 digits, range: 00 - 59
The maximum time never exceeds 359999 (99:59:59
)
You can find some examples in the test fixtures.
Date Time
Mathematics
Algorithms
Similar Kata:
Stats:
Created | Oct 23, 2013 |
Published | Oct 23, 2013 |
Warriors Trained | 212587 |
Total Skips | 19360 |
Total Code Submissions | 389369 |
Total Times Completed | 150082 |
JavaScript Completions | 48537 |
Haskell Completions | 1373 |
Clojure Completions | 374 |
Java Completions | 18044 |
C# Completions | 11507 |
Python Completions | 62423 |
Julia Completions | 114 |
TypeScript Completions | 3241 |
Elixir Completions | 205 |
PHP Completions | 1966 |
Shell Completions | 137 |
C Completions | 1770 |
Go Completions | 1341 |
Rust Completions | 1192 |
COBOL Completions | 19 |
Factor Completions | 15 |
Lua Completions | 198 |
Scala Completions | 106 |
Dart Completions | 104 |
Total Stars | 2300 |
% of votes with a positive feedback rating | 89% of 10184 |
Total "Very Satisfied" Votes | 8078 |
Total "Somewhat Satisfied" Votes | 1889 |
Total "Not Satisfied" Votes | 217 |