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.
I mark this issue as solved ;)
Mm you look confused? ;)
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 ;)
Oh yes! :/ Okay, I fixed that now.
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?
Hi! Thank you, now all the random test cases should be in the format hh:mm. I understand your point, but the idea is that the function only tells the times of trains of the same day, not of the days after.
Hi! I am sorry! I'll try to fix these issues ;) Anyway the function should always return the time in the format "07:00".
Hey thanks for doing my first kata ;) Your solution is great, way better than mine!! ;) Thanks, Giulia
Hi! Thanks for your feedback :) I've just amended the function in case you want to try to pass the tests again.
The function should return "The next train is at 05:00" whenever it's too late to take the train in the same day (I'll make it clearer in the description), so with time:"22:42" and minutes "429" it should return "The next train is at 05:00". ;)
Thank you! I've fixed the function (for now XD). Let me know if you come across other errors. ;)
Hey thank you! Can I ask you which are the test cases that give you that problem? And yes, you're right, it definitely makes more sense if all the results are in the same format, I'll add a leading 0 to 5:00 (and all the other numbers < 10 at this point...).
Hi again :) I think that the problem was that the random tests produced numbers in the wrong format ("2:55" instead of "02:55"). Now the tests should add a "0" in front of all the single numbers representing an hour, so that "2" becomes "02". I think I've solved the issue, but I'm pretty new at coding so please do let me know if you see any other bugs ;) Thank you!
Hi! You're right! Thanks for the feedback, I'll try to fix it ;)