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.
The tests cases don't test for this case but your solution wouldn't work if x was something like "5"
You shouldn't use if else, you can do it with array
This comment is hidden because it contains spoiler information about the solution
Darn it, i didn't need the else! nice code
(m <= 0 || n <= 0) no?
I mean, the answer literally is in the desciption.
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
Where is your else block???
Need kind reply for understanding pleas: why '2' is multiplyed here?
Are you sure?
From https://medium.com/@michellekwong2/switch-vs-if-else-1d458e7b0711 :
Switch is less optimized than if.
This comment is hidden because it contains spoiler information about the solution
Nice!!!