From: Martin DeMello Date: 2007-08-06T19:28:09+09:00 Subject: Re: Determining the common prefix for several strings On 8/6/07, Brian Candler wrote: > Here's a simple solution from my simple brain. It just takes the common > prefix between the first two items, then the common prefix between this and > the third, etc. Same solution I came up with, though I missed the size-check optimisation. Nice because it's strictly linear in (length of the list + size of the first word). martin