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.
What I don't get about this:
Won't the second iteration on a marker replace the 'parts' of the first iteration?
Meaning, during the first iteration (which for the first example will be '#'), parts will be saved as smth like 'apples, and pears'. But when it goes to the second iteation (on '!'), parts will be saved as 'bananas' for example, and replace the previous 'apples, and pears'.
What am I missing?
I thought this kata asked for the original index of the in-between number but anyway
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I didn't know you could use conditions like that in the middle of a sentence!
This comment is hidden because it contains spoiler information about the solution
Took me more than half an hour to produce like 15 lines of code for this!
But if you spend a couple of minutes to see how enumerate works, it all makes perfect sense.
I managed to solve after like an hour by adding space as a seperator but I don't know why it actually works this way
How's that going to return [0] if arr is blank though?
I did that but with AI help. Don't know what challenged me so much with this one
Did the same, but I think it's not very easy to read?
Did exactly that. Been using codewars for like a week and I already can code a solution in a single line just by watching others' solutions
Wrote exactly that and it was my first time solving something in a single line haha