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.
To be honest, I am not sure what would cause problems like that. They have not seemed to be present in any testing of mine, even when I spam the validate solution, and they have not been reported by anyone else until now. As far as I can understand, your code looks fine.
I will leave the issue up and if I figure it out later, I will fix it, but at the moment I'm not sure what could be going wrong.
Any contributions to this kata related to fixing this issue would be greatly appreciated. Sorry for the inconveniece if you were struggling to complete it.
In your first line,
([0.75 * x[0] * x[1] for x in l])
, it is finding the nuber of minutes it will take to complete the homework. We want to find hours.To do so, divide the number of minutes minutes by 60. However, since we have 5 days, we need to divide it by 5 as well, making it simpler to just divide by 300.
What you wre trying to work out was how many minutes to spend each hour you had of the 5 days. You are correct in the first part to find the number of minutes but you are trying to divide it by all existing hours within 5 days, which would give you minutes per hour instead of minutes per day.
Hope this clarifies your misunderstanding.
Ok, I changed it a bit so you have to take the digit sum of the LCM. I guess it shouldn't come as a surprise that there's already an LCM kata, but please tell me if I need the change it more so it isn't too similar.
Thanks for letting me know.
Thanks for telling me, I have updated it now. Should work properly.
Yes, I was mistaken. I have fixed it now, sorry for any inconveniences to anyone who was confused while trying to work it out.
Thanks so much for replying and pointing out these issues. The issues are there, you were not mistaken. I confused myself a bit while making it, so I got mixed up with the variables and their meanings. I will try to fix the issues as soon as possible.
Thanks again for the non-aggressive report!
This has been done by mmalkavian, thanks for the suggestion!
Thank you for the contribution!
Thanks for the suggestion! Just added them, they should work properly.
Sorry about that, my bad. Thanks for letting me know!
Haha, thanks for letting me know! I used the example in the description to test my solution and it said it was wrong because 25 didn't equal 23, but soon figured out that it was because I counted wrong. I forgot to update it in the description.
Ok then, thanks
195 should be 6 and not 15??? uh how?