7 kyu
Timmy Time
Loading description...
Strings
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Description should be language-agnostic
Node V.14 should be enabled
Approved
Nice kata! Please fix the spelling.
"Write a function changeTime which increase or decrease given time. Input param is string in HH:MM format and delta is integere value -1 or 1. Let see some examples:"
pakeisk į
"Write a function changeTime which increases or decreases given time. Input param is string in HH:MM format and delta is integer value -1 or 1 in minutes. Let see some examples:"
Fixed
Description states input will be HH:MM but in the random test on submission I was getting input that was 5:11 which has only a single digit hour. Practice tests show 08:15 which was expected.
Fixed
Never ever test using a function you have preloaded or else people can do what I've done, look at my solution.
Also needs random test cases.
Thanks for feedback, I changes to use Test.AssertEquals and added test with random time.
well done, also just clearing up that function thing you put in the preloaded section was cool but since you used the same one in the final tests it's easy to cheat so you could still use it for final tests but done place it in the preloaded section :)