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.
hello my name is Aabdulhay and you
I was thinking of this while doing it but I could not remember. Trying to do it all from memory.
Not only are you trying to be pedantic, but you also don't even seem to understand the rule you're trying to be pedantic about.
That method does accept two parameters, since two is in the range of 0..N. The opposite of accept is reject, and if that function rejected
two parameters, the tests would not pass.
Also, why are you criticizing people for improving the function by not limiting the amount of names a person can have? At least hundreds of millions of people in the world have more than two names.
I can't do this anymore
Good point, I was trying with the definition that was given before and didn't manage anthing. Once I re-read the question and tried that it worked in less that 30 sec.
I used dict ass well. that was my 1st thought and i followed it. accually i believe its good thing to go hard way at very beginning to understand how things work
because despite having its dangers, the solution is beautiful to see, in the context of codewars, this type of solution comes out ahead... multiple 'ifs' are sometimes not very elegant..
I just read some comments below that clearly state you shouldn't use eval() for these kinds of purposes because eval() will
run absolutely anything, therefore it's potentially extremely hazardous to use it. So, explain to me: why the 724 Best Practices?
I used a dictionary instead so I can improve my dictionary comprehension understanding
convert value1 and value 2 to strings first. Your code doesn't evaluate the values of value1 and value2. Say value1 = 1 and value2 = 3, your code is trying to evaluate value1 + value2 whereas it should be evaluating 1 + 3.
clever, I'm borrowing this!
i don't understand
python new test frameworks are required.
This comment is hidden because it contains spoiler information about the solution
Enjoyable challenge on dynamic programming and algorithms optimization.
Loading more items...