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.
Bitwise NOTing any number x yields -(x + 1).
This comment is hidden because it contains spoiler information about the solution
It is not the triple quoting that allows comments! It is the VERBOSE flag.
This comment is hidden because it contains spoiler information about the solution
I do not understand, what you are trying to say/ask.
sequence(n)
(the function) does not produce a sequence, it produces the number atn-th
position.I.e.
sequence: Z+ -> Z+
Look at examples once more, there is no
2
in the sequence. Not all numbers from 0 to 3 are present in the sequence.This comment is hidden because it contains spoiler information about the solution
5
is not in the sequence, as given in the example section. If it was, there would be a progression1, 3, 5
.Thus,
0, 5, 10
is invalid.it's not a multiline regex. It's based on "string continuation" instead: the interpreter concatenate all the strings when they are writen without any operator/separator, from one line to the other (and inside brackets, iirc)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hi- "Your task is write a function to calculate the total time required for all the customers to check out". There is no "you" :D