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.
Duplicate issue, language not specified. Closing.
Who knows right?
it's been 3 years, I hardly doubt it lol
what happens if you, in "op", write "alert('')" or another javascript function that can stop the application?
LOL
Are you still want to know more about lambdas?
Very nice solution bro!
This comment is hidden because it contains spoiler information about the solution
It is a nice approach, but is not readable at all. The ternary "if" should be used to simplify "dumb" conditions, in otherwise is a code smell.
All languages should have tests like
Test.assert_equals(high("aaa b"), "aaa")
to check that character scores are indeeda=1, b=2, ...
(and nota=0, b=1, ...
).Let's use the test FArekkusu gave you:
Test.assertEquals(high("aa, z"), "z")
First case (a: 1, z: 26), highest scoring word is "z" as expected.
Second case (a: 1001, z: 1026) highest scoring word is "aa".
Do you see the difference now?
Hello! It would be nice to have the alphabet included in the kata, or to have a comment like "I will usee the USA alphabet". I'm from Uruguay and I included the "ñ" letter on alphabet, so a lot of tests crashes. When I realize the problem I corrected it , but There werent mistakes on the code, only in the alphabet variable
Niceeeee