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 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!
Isn't the standard form of generator expressions like 'x for x in something if condition else'? I get a syntax error for 'else' using this and only when I moved the if condition first was I able to get results
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