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.
This comment is hidden because it contains spoiler information about the solution
Python:
File "/workspace/default/tests.py", line 40, in d2
Test.expect(False, "Should support comparison")
^^^^
NameError: name 'Test' is not defined
Loool
The type of function result in solution blank should be at least long int. Because we can have list like {2^30-1, 2^30-2, 2^30-3, 2^30-4, 2^30-5}. Then the int answer will not be 5_368_709_105. Maybe it will be -25, maybe 2_147_483_647. In any case, this shows well that the author did not really think about the problem.
IMHO, localmax and globalmax should be more than int (long int, for example). Because we can have list like {2^30-1, 2^30-2, 2^30-3, 2^30-4, 2^30-5}. Then the answer will be 2_147_483_647 and not 5_368_709_105.