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.
All of this has been done before - see the "Linked list" series by @JDeBolt. ( One of the folds may be missing. )
Consistency would be nice. Your function names are all over the place and your argument order is not consistent ( or standard ) either.
Why is
listMapTwoParams
limited to lists of the same length?Why can't lists be infinite? You're missing the best feature of linked lists because you're letting yourself be restricted by a strict language. ( Actually, best feature and the only feature that makes it worthwhile doing this anyway. If we have already arrays, why would we have linked lists with worse performance? )
The description should clearly explain the task with all the requirements.
The output should be a tuple.
If
days
part of the output should be in range[1; 31)
, then the timestamp must havedays > 1
too.Your solution is incorrect.
What the hell is this? For
0000-99-00-00-00-00
it returns[8, 3, 1, 0]
, for0000-99-01-00-00-00
it returns[8, 2, 31, 0]
, and for0000-99-02-00-00-0
it returns[8, 3, 1, 0]
again!Either your solution or the description is completely wrong:
0000_99_01_00_00_00
the01
is the first of January, not the first of AprilThe information about
HH
is missing from the input specs.Hi,
No random tests.
Function parameter
str
is the same as a built-in.