Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Yup that does make sense. I mentioned to start from index 0 to indicate starting from left to right but have added your line as it makes it much clearer, thanks!
Mm you look confused? ;)
Confirm it is fixed. o_O
Yes, gosh, I forgot to copy three lines of code in the solution...Now it should return the correct result.
Thank you!! :)
I'm closing this issue ;)
It still contains a bug
Ok, thanks, works now:-)... I think you can close all these issues;-)...
Oh yes! :/ Okay, I fixed that now.
Hi Giulia;-), no sorry but not completely (one case for some random tests):
Expected: 'The next train is at 04:00.', instead got: 'The next train is at 05:00.'
But now it should be easy to fix this...;-)
Hi @smile67 :) Thanks for your feedback and your patience!! I've re-written the function and tested it against the cases you and @finiir pointed out. It should work?
You can see it in my example: console.log => your Input time...
I've changed my solution for your correction, but it produces still wrong testcases;-)
Hi! I am sorry! I'll try to fix these issues ;) Anyway the function should always return the time in the format "07:00".
Sometimes still not working for different cases (and others are completely wrong):
Expected: 'The next train is at 7:00.', instead got: 'The next train is at 07:00.'
Or:
Random Tests
Log
Input time: 07:2, minutes: 212
Expected: 'The next train is at 05:00.', instead got: 'The next train is at 11:00.'
Really sooo difficult;-)?
Thank you! I've fixed the function (for now XD). Let me know if you come across other errors. ;)
Loading more items...