4 ms·
Be careful using sets -- what about "banana" and "ban"
by minikomi 13y ago
Be careful using sets -- what about "banana" and "ban"
- MichaelSalib 13y agoThe 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 13y agoYes and I appreciate it. https://gist.github.com/rilindo/6576017 https://gist.github.com/rilindo/6576017 New toy to play with. :)