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.
Thanks for feedback. Could you share the discord link?
Made it more interested now?
EDIT: never mind. deleted and made a new one
It's just my first kata. I made it simple and focus more on familiarize myself with the authoring tool. My next one is gonna be more interesting ig.
I found no diplicates. And for sure not for your level ;)
This comment is hidden because it contains spoiler information about the solution
Just checking the available ?? 0 would be enough instead of divsion to NaN. Recipe will always have some vlaue I guess
It can be simpler. Like move Math.floor outside of the inner loop...
Fortunately JS handles division by zero :)
Ugh, those ternaries :)
Basically same as mine but all in one function.
arr3 :)
Can it be shorter?
Although, author said you can return ties in an arbitrary order, there is a test like this:
("a a c b b"), ['a','b','c'])
where
a
andb
have both 2 occurencies, the default sorting resulted into['b','a','c']
so I had to add
localeCompare
for cases where it is a tie to sort words alphabeticallyThis comment is hidden because it contains spoiler information about the solution
Generator algorithm is awesome. I have used it as well. Why do you need an additional set? Array look up by index should be even faster than
set.has()
Loading more items...