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.
Why not just use a separator
It's easier to read and look that way
Very nice solution, but I don't prefer use regex and replace because for long string is not very good for performance
This comment is hidden because it contains spoiler information about the solution
ikr, gives me headache
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This is so smart. Thank you for sharing that. Also good point on the effects of sorting for larger arrays
i didnt know that replac can perform like that
intresting thx
This comment is hidden because it contains spoiler information about the solution
If the execution in your
if
statement is a return, you don't need anelse
block after it, because the function will not continue to execute once it's returned.And with the spread operator, you can now simplify the use of Math.min and Math.max to
Math.min(...array)
andMath.max(...array)
, respectively.and then, there's this
i dont know why peoples are complaining but they forget this part if it works doesnt matter what it is! it works
Absolutley fantastic. I love you madly!
This comment is hidden because it contains spoiler information about the solution
mine is the same but clear maybe, but you are amazing
Loading more items...