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.
weird, for me it works in 1100ms, 10 times faster than the limit.
Yeah, but the author should clarify this in the prompt..
I agree in that async/await is cleaner (IMO) than chaining Promises.
As an aside for the curious, one can await Promise.all for parallel execution and use destructuring to pull return values, assuming you're OK with the inherent fail-fast behavior.
e.g.
const [resOne, resTwo] = await Promise.all([ asyncOne(), asyncTwo(), ]);
This comment is hidden because it contains spoiler information about the solution
I had a timeout error with this kind os solution...
click the drop down at the top of the kata and you can select the version
This comment is hidden because it contains spoiler information about the solution
because it's not a list. Look at the documentation of the fonction generating it.
This comment is hidden because it contains spoiler information about the solution
The other great thing about looking at other solutions is seeing cool logic like this when you used parseInt :-)
This comment is hidden because it contains spoiler information about the solution
It's so fast!!
Likewise with Python. This wasn't at all an 8 kyu kata. Yes, it's mostly algorithms and critical thinking, but I feel like this level of critical thinking is developed as one becomes more adept at coding (thus, should be a higher difficulty).
As JStegg wrote - f string is available in python >= 3.6. It is new feature (great in my opinion;)). You can choose python version for almost every kata on codewars.
I gotcha; thanks. I didn't realize we could use different versions on here (do we import them or something)? I'm not sure how all that works - I'm still in the initial learning phases, so please excuse the ignorance!
Loading more items...