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.
there are 100 random tests, but you see 5 assertions for each of them. So you need to reach 500 successful assertions just for the random tests. Meaning you need to change a bit your approach (the way you store your data and use them)
Got up to 140 passes in the available time. Still not enough!
Have enjoyed working on this! Thanks. Unfortunately my solution - a backtracking algorithm - is too slow. It gets through approx. 120 tests. Could you indicate how many tests are there in total?
Think mathethematics...what you are doing is wholly unneccassary...
Aha, I have just seen what I was doing wrong. Whoops.
Argh, I am having this issue and cannot - despite much trying - see why C doesn't win... A hint would be much appreciated - or is there a problem with the test/problem?
Figuring out what to do is part of the challenge, so I don't want to say too much... but brute force is definitely not the way to go.
This comment is hidden because it contains spoiler information about the solution
Enjoyed this one, thanks.
Just a minor issue with the description...
It says the maximum number of invalid entries permissible is 10% (where there are 11 or more entries) but I think it's meant to say the maximum permissible is anything under 10%?
10% invalid entries is too many, as discovered in the second-to-last test case, where 2 invalid entries out of 20 makes the array invalid.
Cool, see you there sooner (preferably) or later ;)
Hey! Cool.
I'm doing a late shift at work, but I'll try.
If not, I'll keep my eyes for the next one!
Thanks!!! :)
That's exactly how I wanted it: thanks for your kind words :)
FYI, on Monday I will be to the FAC meetup :)
This had me stumped for ages until I started thinking about the pattern of how the numbers have to move around the result in the next bigger value - and even then I had a few false-starts.
Challening but rewarding, and not like any kata I've already done.
Thanks!
Hi,
My solution is failing the 'works with other kinds of class' test, because I'm using .flatten within the method. I'm not really sure what this means given that the problem only applies to a comparison of one array (the argument) against another (self). Can't get my head around the nesting structure of something that isn't an array! Am I missing something?
Many thanks!
Loading more items...