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.
The unit of
x
andphase
is not mentioned. They're apparently different (x
is in angular wavenumber,phase
is in radians)too long an complicated :-) see my fork
thanks, I added a checker function to randomly test some of the answers
Just pushed the range of k all the way to 10^9.
This comment is hidden because it contains spoiler information about the solution
Common Lisp.
Just curious, what serious language except C does not have sets?
My idea was to let some room for future translations in languages that don't have a builtin
set
, and aset
is iterable in Python. Instead of asequence
, what would you suggest ?Tests strictly requires return type to be a
set
, rather than a sequence (which would be a iterable). A set is also not a sequence, so the output as specified by the description is misleading.This comment is hidden because it contains spoiler information about the solution
oh yeah
fixed
The last digit should be
4
It's my first kata, so I don't expect my solution to be fully optimised.
By the way, can you show me an example of the
O(log(n) * log(k))
solution?What do you mean? In the description it didn't contain any underscores
Fixed
Loading more items...