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.
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 comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
My bad, forgot about it
Remove unnecessary parentheses
length
can be renamed towidth
to better match another constantThis comment is hidden because it contains spoiler information about the solution
let
if you don't update value of the variablenumbers
andhalfOfLength
, you should prefer usingconst
to declare themfirstPart
andsecondPart
are declared as global variables, it's a bad practice!I think that additional test cases are necessary.
Many solutions have a flow in a simple "bla bla bla!" case.
Output -> "labay labay bla!".
Why it is not "Best Pratice"?
How simple it is!
I feel embarrassed comparing this solution with mine ;)
I think that you should add "Don't mutate the input!" to the description.
Very readable
Loading more items...