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.
You cannot! But I can't stop anyone adding a polyfill..
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?
It does matter when the strings haven't the same length.
Add
Test.assertEquals(high("aa, z"), "z")
to the sample tests, and tell me why your code doesn't pass it.You have no
- 96
.