Yeah, you definitely should only submit the best possible code in 8 kyu katas, or else all your future employers will see them and find out how bad of a programmer you are.
Almost same as mine, thought I went for a helper function. I feel like it's more readable this way once you come back to your code after a few months, easy to grasp what's going on.
OP passed the kata, closing.
Yeah, you definitely should only submit the best possible code in 8 kyu katas, or else all your future employers will see them and find out how bad of a programmer you are.
Almost same as mine, thought I went for a helper function. I feel like it's more readable this way once you come back to your code after a few months, easy to grasp what's going on.
Clever as hell!
Surely in production code this isn't best practice?
Hardly readable
For sake of practicing filter I used .filter 6 times as well, but this could be done better with just an if/else one iteration.
I had no idea that slice floors the result! Very informative, thank you!
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
Very easy to read actually
One of worst descriptions ever.
This comment is hidden because it contains spoiler information about the solution
Loading more items...