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.
Same. The author did not fix it. 7 years passed.
"Take 2 strings s1 and s2 including only letters from a to z."
People often use them where they shouldn't, unless it's a callback.
But this is more my preference
It is strange to hate arrow functions... It is just type of function
I hate arrow functions, that's why I wrote it as supposed to!!!
"Take 2 strings s1 and s2 including only letters from a to z." It's defined in the instructions, so the tests are complete.
"but still this solution seems to be correct, because task guarantees that only letters will be passed in. solution does not have to check for non-letters."
That is fair I suppose.
I thought a solution had to be correct to be posted here?
This is incorrect. It does not test for non-leters.
But...why? lol
This comment is hidden because it contains spoiler information about the solution
This looks a little bit like the problem I was having. If you're doing player1.zip(player2), you need to check whether player2 is longer, and if so, do player2.zip(player1).map(&:reverse), because otherwise the extra elements in player2 won't get zipped.
This comment is hidden because it contains spoiler information about the solution
(Ruby) When the weights are the same ie: "30KG", "30000G", "30KG" only the order that starts with KG is accepted: "30KG", "30KG", "30000G".
Also "90000G", "90KG" is not acceptable, but "90KG", "90000G" is.
Loading more items...