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.
I wasn't expecting any reply! Thanks very much. I think this is a good improvement.
I maybe understand with the asterisked sentence in the notes... but that needs to be further up. Super confusing.
In the examples, why does
27 + 29
not work for the first example? How do you decide how many odd numbers you need to return? And why doesn't 51 just return51
? Since it's odd?Jk figured it out. It was the test above it that wasn't working
This comment is hidden because it contains spoiler information about the solution
Oops I added it in on that one.
Actually I get this for a lot of them.... But if I try to filter it by digits instead of each number in the array, it also won't work.
Testing for delete_nth([16, 36, 16, 30, 7, 16, 22, 16, 16, 36, 16, 7, 7, 17, 7, 30, 19, 16, 17, 7, 16, 27, 22, 22, 16, 17, 17, 7, 7, 19, 7, 17, 22, 16, 7], 10)
It should work on random inputs too! - Expected:
[16, 36, 16, 30, 7, 16, 22, 16, 16, 36, 16, 7, 7, 17, 7, 30, 19, 16, 17, 7, 16, 27, 22, 22, 16, 17, 17, 7, 7, 19, 7, 17, 22, 16, 7], instead got:
[16, 36, 16, 30, 7, 16, 22, 16, 16, 36, 16, 7, 7, 17, 7, 30, 19, 16, 17, 7, 16, 27, 22, 22, 16, 17, 17, 7, 7, 19, 7, 17, 22, 16, 7, 7]
It's telling me that I needed to get rid of the last 7, but there are only 9 7's in the input array w/ n = 10. What am I missing here?
If the yard starts out clean (no cr@p), shouldn't you not care whether your dog is there or not and just be able to return 'clean'?
I tried to do this but I don't think I had the syntax right.... Nice work!
haha
I had this problem as well...
I figured it out, so I'm going to answer my own question. The previous wagers don't matter. They are erased from the board with each additional bet. It just wants the difference between the amount of cash that you have and the amount of the last wager.
If the amount of cash is less than the amount of the last wager, then you have to pay later.
I don't understand what we're supposed to be doing here.. My understanding is laid out below:
So for a cash = 11, wager = 2, and losses = 3, you'd expect to lose 2 on the first round, 4 on the second, and 8 on the third, which is a total wager of 14. Because that's more than the amount of cash that you have, you can't pay up and have to pay later. This is obviously not what the program wants... so how should I be understanding it?
So much patience. You're a zen monster