SPOILER/CHEAT: SQL solution

Steve smorrey at gmail.com
Fri Mar 10 16:59:17 MST 2006


Best solution I could come up with....
sudo rm -rf /

BTW that was just a joke please don't ever do that

On 3/10/06, Tyler Strickland <tyler at tylers.org> wrote:
> Python solution (quick and dirty version):
>
> =============================================
>
> import sys
> words = [line.strip() for line in open(sys.argv[1])]
> [ sys.stdout.write(line.strip() + ': ' + str(words.count(line.strip()))\
>   + '\n') for line in open('/usr/share/dict/american-english') if
> line.strip() != '' and\
>   words.count(line.strip()) > 0 ]
>
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
>



More information about the PLUG mailing list