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.
He meant the logic of solution would not be valid anymore, but still genius as it has 0.5 =)
LOL I feel the same! Our solutions are exactly the same hahah! As Reda12345 said, we all have diffenrent logic but as long as it works you're good :) I was being harsh to myself too, but i'm going to take my own advice now and be proud of myself for finding a solution at least lol even if it's not the shortest code!
genius
every solution is valid. If you passed Testing phase that mean you've something in the brain !
not at all ! we all have different logic the point is that you're solution work.
Testing make it correct
I'm new to python, and I'd not seen the floor division operator before. Thanks for this solution. It gave me something to research. I am now a bit smarter about things. I appreciate it.
Great response! Only issue for readability is not having the same number in the prompt in the code. Then again, it's simple enough it's not an issue
TIL
If the water consumption rate was changed, any method would have to be rewritten. The rate is not provided as a parameter here, thus we have no choice but to perform a calculation based on a constant in the code. I suppose it could be assigned to a variable for ease of changing later, but that is not a requirement of this kata.
if the water consumption rate changes, this method will have to be completely rewritten
Read this
I too use a floor division, but not so concise way! Awesome!
damn it, I can't think of that
Lmao, thats clever.
Loading more items...