[Tutor] ideas for a simple program

Brett Ritter swiftone at swiftone.org
Wed Jan 26 05:03:05 CET 2011


On Tue, Jan 25, 2011 at 10:18 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> Or a program to find anagrams.

A great exercise in learning how different string operations perform
is to search a text file for the largest palindrome string.  I recall
running one on the Constitution where a good program could do it in
seconds and a bad program would take hours (if it didn't run out of
memory first).

-- 
Brett Ritter / SwiftOne
swiftone at swiftone.org


More information about the Tutor mailing list