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.
Hi Natasha.
What did you do here to get it? I thought I had it right too...
Sure thing. It made for a better looking, more concise description. Thank you. Would have replied sooner but im on my phone todsy and its difficult to edit and text here on codewars. Cursor is hyper and jumps around.
I wasn't expecting any reply! Thanks very much. I think this is a good improvement.
Okay. revised with the bulleted list. Looks like a good improvement.
Okay. Might take me an hour or two. Operating from my phone and not enough sleep.
Yes, put the "notes" above the "examples" and perhaps in a bulleted list. And perhaps also call those notes "the specification" instead.
In the Description at the bottom, after
the asterisk it states:
The first input minus the second input
reveals the number of consecutive odd
numbers required for the solution. (otherwise
all of the odd solutions would deteriorate into one odd number)Also
consider this kata is categorized as a puzzle
and requires a bit of deduction from the
user. Maybe I should edit and bring the info
after the asterisk to the top? Buried down
there, probably easy to miss.
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?
Loading more items...