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.
As much as I love the
foldl1' xor
solution, this one is faster because it doesn't have to traverse the whole list.This comment is hidden because it contains spoiler information about the solution
I'm so confused.
Hint II is now a 404 page.
This comment is hidden because it contains spoiler information about the solution
Oh, figured it out myself before I saw your reply, but thanks anyway.
Very clever and only O(n log n) time.
This comment is hidden because it contains spoiler information about the solution
Casting to Int via fromInteger makes it not work for bigger int types. using "genericTake" (from Data.List) instead of "take" is better.
Linear time instead of O(n log n) for sorting-based solutions. Bravo!
This comment is hidden because it contains spoiler information about the solution
Wonderful! If I understand correctly, "<>" means "then by" in this context?
Regular map would suffice.