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.
if you solve the kata MongoDB object ID, you can know exactly how old this (and any other) solution is ;-)
If you see the oldest comment, it's from 8 years ago. The solution can be older than that.
This solution likely comes from a time when
let
didn't exist in JSGreat, but why do you keep using var?
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?
Loading more items...