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 comment is hidden because it contains spoiler information about the solution
Oh wow nice, I was just working on this.
Yup, I re-read the instructions and it only works where a is less than b in Some((a,b)). Now to make it more efficient...
How I understood the description is:
your suggested pair
Some((2024, 2295))
fails for condition 2 if the limits are[2177, 2300]
and2024 < 2177
. If the pair is swapped around toSome((2295, 2024))
, then condition 1 fails.That is at least my uninformed reading of the task.
I am getting this same error. 2295 and 2024 are valid pairs - I calculated them by hand.
Hello, I'm testing this in rust. Currently when my code faces the test range 2177 to 2300, I get an expected pair 2024 and 2295. You can factor these online and add their factors - it is a valid pair. However, currently the expected value is None, although there is a valid pair in this range. Please fix!
This is copied from Eloquent Javascript - maybe you should at least credit it?