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.
Gauss is turning in his grave BUT it works.
Great
You are right😂
This is insightful
This one is at least 7 years old.
You're correct, it's best to use
let
in nearly all cases, unless you know what you're doing. I suspect that many of these solutions are old, posted either beforelet
was introduced, or prior to its widespread usage.Good job, I think i should be a let and result should be a var? for scoping reasons.
https://stackoverflow.com/questions/762011/what-is-the-difference-between-let-and-var
This solution is probably older than you
wow very simple and clever, great work !!
Well yea, no need to say thank you.
can someone please explain how we can refactor this solution to reflect O(1) concept?
@Notare The Big O Notation is an evaluation of the execution time (and space) of an algorithm in different scenario where the amount of data provided change.
O(1) stands for algorithm where the execution time is the same no matter the amount of data provided.
nice... but should we be using let and not var these days?
Because most people don't think about perfomance aspect of their algorithm, they just rush to pass the test, I think there should be more katas with execution time test.
See there: https://en.wikipedia.org/wiki/Big_O_notation
Loading more items...