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.
This kata has been both challenging and fun, and the instructions are very clear! Thank you so much!
o(≧∇≦o)
Hi there!
So, I know this is your kata and you are free to do whatever you want with it, but may I suggest you change the type of the 'evap_per_day' and 'threshold' variables? It doesn't make any sense to have them as integers, and it's plain to see that they should be floating-point numbers instead, otherwise you keep losing lots of volume due to rounding errors!
I know one can (easily?) cast from integers to floats, but what's the point of that added step? It's only frustrating!
Not in your implementation no, but that's the point: why couldn't you accept (-1, -1, -1) as the return value when the second tortoise never catches up? Is there a deeper reason for the Option::<Vec::> return type, or was it an arbitrary decision?
I'm asking because maybe it's something I should learn.
Why ask for such a complicated return type though? Wouldn't an array of integers, or even a vector of integers, have sufficed? Why wrap the vector of integers inside an Option?
Seriously, I spent 50% of the time for this kata trying to correctly manage the return type! That sucked big time!
(Yes, I've just started learning Rust. Sue me.)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I liked this kata, but I must point out that the complementary strand to 'GATTACA' is in fact 'TGTAATC' and not 'CTAATGT'. The two DNA strands in the double helix are anti-parallel!
Sorry, I don't know JavaScript. I think you would find help sooner if you posted at least part of your code here.