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 don't understand this, since the statement says: "Take an array and remove every second element from the array" and a test has this: "assertArrayEquals(new Object[] { new Object[] { 1, 2 } },Kata.removeEveryOther(new Object[] { new Object[] { 1, 2 } }));
"
What the...
Thanks for explaining it I was wondering
Sad that I forgot about slicing! :")
Yeah. Specifically pointing to always keep first element is so much confusing and took me extra time to solve it, thugh first elem would naturally be saved hadn't be there special pointing to "always keep" first element.
It's every element with an odd index. See now how that way of saying it could be confusing?
Approved
python new test framework is required. updated in this fork
YES!
Been struggling all day, but was thrilled when I saw this one.
All I know is simpler syntax right now lol
the hilarious part is, I almost always solve the (Python) Katas right, but I keep forgetting about simpler syntax
Right! I forgot about slicing.
You run the risk of an error without it.
ditto,not bad bro
Under the comment box, there is a checkbox with the text "Mark as having spoiler content". And after you posted it, between
View Solution
andRemove
, there isSpoiler
with a flag icon. That'll mark your post as hidden for people that didn't solve the kata yet.Loading more items...