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.
Thanks, bro!
char variables store ASCII values of a character. Lowercase characters range from 97 to 122.
The only thing left is typecast char to int and receive the ASCII value;
can you tell me how it works ? what is 96?
Why the heck would the students's names be numbers?
Variables are created in any case, though you don't create them yourself and they don't appear, intermediates are needed to process the code.
This comment is hidden because it contains spoiler information about the solution
His solution is O(n) while yours is O(nlgn) :p
Approved some time ago
Gotta love arrow functions.
sorted will be delegeted to Arrays.sort() here
and Arrays.sort() is O(nlogn) which is more than
O(4n)
Well, I believe in YAGNI (especially when solving katas, but also in real life).
If it's not part of the requirements - why bother myself with that?
Although not stated in the problem description,
what about uppercase letters?
position('A') => "Position of alphabet: -31"
This solution is bad.
Test with two spaces in a row
i like how you solved both max and min in the same loop
Very nice solution!
Loading more items...