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.
Horrible and slow solution.
nice :D
It should work, since addition is commutative. Maybe you missed something else?
does anyone can explain me why "(curr * curr) + prev" doesn't work? it was my first attempt
Woah! Same solution as mine!
Given an input of
"""'+[__import__("sys").stderr.write("hacked!"),b""][1]+b'"""
and you'll be hacked XDHoly moly this is crazy XD
This comment is hidden because it contains spoiler information about the solution
hahahahahhahhahahahhahahhahha
Right. [aeiou] can only ever capture one character at a time, so it's not able to deal with consecutive vowels any more efficiently than any other case.
It totally make sense to avoid constructing strings. I made a refactory on my solution and removed the
mapIndexed
step. Thanks for the comment!Is it because it creates less matches?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce
This is a little tricky... but the fact is:
12! < 2^32 < 13!
20! < 2^64 < 21!
so the only thing you need to do is make a table... done!
This comment is hidden because it contains spoiler information about the solution
Loading more items...