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.
Your solution must work for any array of any six distinct numbers in that range.
In other words, tests define the input, not you.
As someone trying to learn rust, I appreciate the breakdown!
The fact that there is a preloaded map could have been a bit bigger. Maybe bolded. If something seems pretty straight forward, I don't usually read every detail.
I would recommend using the units in the description earlier on. It was confusing trying to understand the example without units.
Is this done with any 6 random numbers in that range? Can I randomly generate any 6 unique numbers and have it work?
The constraints are weird. Only the bottom two horizontal lines can be missing. So we know none of the vertical lines will ever be missing, which means we can conclude all of the examples above, since there is no other possibility. I think it's a bit silly, but it is what it is.
Apparently I used the wrong equation and got the right answer. I missed the whole logarithmic memo
This site is a great way to learn new things. I've been using JS for a few years, yet what you did here is new to me. I can never stop learning
I thought about modulo, but for some reason didn't think it would work. I then proceeded to recreate exactly what modulo does, without modulo. God I'm stupid sometimes
This comment is hidden because it contains spoiler information about the solution
Oh, hahaha, it's good to know it's only for these challenges. I was scared to see a full program in this style. I'm still pretty amature and do this for fun, so I had to look further into ellipses in JS to learn what the heck you were doing. So I guess it's a good teaching tool for people like me, haha
Oh, I agree completely. Just my style of coding for these challenges.
It's small, but man is it hard to read. So many letter variables in such a small code, and combine that with nested ternary operators.
Very well done. I love it