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.
python never ceases to amaze me in its simplicity
invalid solution, fails for negative numbers.
example input: find_longest([1, -20, 100]) # should be 100
the purpose of this website is education, not passing the provided test cases with the least amount of code. this is the problem with "gamified" learning.
Not readable.
who cares it satisfies the Sensei
mildly infuriating
Interesting twist. I went along the same idea but with a diferent
else
treatment.have you worked a lot in c?
Sorry for adding my three peas, but
it doesn't work for negativ numbers in the array, i.e [-1, 10] should return 10, not -1, right?
And what about with empty lists? ;)
This comment is hidden because it contains spoiler information about the solution
You don't need to say that.
fantastic
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Brilliant.
I see thanks, I think this is a Python 3 guarantee only though? The docs from Python 2 are different https://docs.python.org/2/library/functions.html#max and see SO https://stackoverflow.com/questions/6783000/which-maximum-does-python-pick-in-the-case-of-a-tie
Loading more items...