HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by minikomi | Hacker News Reader
Parent
Full thread
minikomi
·
Be careful using sets -- what about "banana" and "ban"
View on HN
MichaelSalib
·
The OP's solution didn't deal with letter counts at all; my first expression was to show him a similar solution that was more succinct to illustrate the principle at work. My second solution deals with multiplicity properly.
rilindo
·
Yes and I appreciate it.
https://gist.github.com/rilindo/6576017
New toy to play with. :)
Reply on news.ycombinator.com