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.
This comment is hidden because it contains spoiler information about the solution
Nice use of
Infinity
My mistake. I thought I had seen some Kata where there were language-specific descriptions. I now realize that that is a rendering concern.
I've updated the description. Thanks for the help.
It's a little embarrassing how much I over-thought
isPalindrome
.Nice parameterized type
Polish t
(as opposed toNumber Double | Operator (Double -> Double -> Double)
)Sorry for the re-post. I was trying to add this as a 'suggestion.'
There are a lot of edge cases missed by the test cases and missed by many of the successful submissions (including mine).
http
orhttps
(e.g. ftp://foo.example)Additionally, the name is a little misleading as this exercise is looking for the so-called "second level domain," not the full domain.
I recommend adding the following test cases:
Great kata. It is more than just an interesting problem. It exposed my weaknesses with list comprehensions, and I learned more about Haskell through doing the exercise. That is the whole point of a good kata.
I like how concise this is, but I can't get over the n(n-1) divisions. My solution requires no divisions but has a space penalty of 4n bytes, so I can't say it's any better.