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.
well, my solution is faster than O(2n) i think. Not so elegant, but have only one filter.
These belongs to elementary algebra (which should be what have been taught in schools?). They're instantly recognizable once you have enough experience on basic maths.
This looks like the best answer here. It's underrated right now. Big O of N as opposed to 2N and unlike some other N solutions using filter, this requires no extra step when it's all done.
I like this solution because it can basically be written as a formula on paper and even figured out that way quite easily. However, I lack the capability to come up with such a formula on my own. What area of Math do I need to study to be able to do this?