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.
if first letter is upper case it wouldn't be camelCase it would be PascalCase
I'm not quite sure that this is a 7 kyu kata, or I'm too bad
man, thank you very much, comming from a (basic understanding of) python background I thought that the expression would only return true or false, this blew my mind.
This comment is hidden because it contains spoiler information about the solution
I understand how it works and why it works, but what I'd like to know is how he got to that point? like how'd you end up with the exact formula that does it? could someone perhaps explain what the thought process coul've been for this? thanks.
OMG thank you very much, I know what I have to do now
so basically the answer is which ever second digit of the pair appears first? sorry, just trying to wrap my head around a way to implement a solution to this kata, I'm very new to code
how come
sum_pairs([10, 5, 2, 3, 7, 5], 10)
^-----------^ 5 + 5 = 10, indices: 1, 5
^--^ 3 + 7 = 10, indices: 3, 4 *
* entire pair is earlier, and therefore is the correct answer
that is the correct answer if the addition of both indices of '3' and '7' is more than the addition of the indices of the '5s'????