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.
Yesn't,
Char
is an instance ofOrd
where the characters are ordered by their unicode codepoint. It does not really "threat them as they were numbers" but deep down at some point everything is an int eventually.wait, Haskell treats chars the same way as if they were numbers? like, he automatically converts char to number like ord() in python?
smart boi
I should use more builtin functions. Thanks
tested it, seems broken with present version of problem.
Wait, was
split
package supported here? Was my entire life a joke?wow, nicely done :)
This comment is hidden because it contains spoiler information about the solution
One should implement its own
argmax
.Edited: Oh! One could do
reverse
beforewords
.This code is in fact not correct, because
maximumBy
will not return the first element with highest score but the final one.For example, if we use the test "ab ba" (which should return "ab"), the code cannot pass.
This comment is hidden because it contains spoiler information about the solution
Great use of this property!
That's impressive, I often forget that there probably is some hidden pattern that I can leverage. Good one :).
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...