Skip to content

Solution to “Searching for Bobby Fisher”

In Roddy's own words:

"I was using the "Find" method on an unsorted TStringlist... which you're not supposed to do. Sometimes it works (my initial test case had the items in my list already sorted, just by coincidence), but usually it doesn't..."

So, Roddy had two options:

  1. {...}
  2. Names.LoadFromFile('names.txt');
  3. Names.Sorted := True;
  4. {...}

...or...

  1. //Instead of using Names.find, do the following:
  2. Result := Names.IndexOf('Bobby Fisher');

Thanks again to Roddy for suggesting this puzzle. If you'd like to submit an idea for a puzzle, email me at jacob(at)twodesk.com.

3 Comments

  1. Moritz Beutel wrote:

    Any chance for a few updates here?

    Thursday, February 26, 2009 at 5:51 pm | Permalink
  2. Aideli wrote:

    Good afternoon! Beautiful Kiev woman information there. escort men. I am pleased to welcome you to its website, prostitutes Kiev - Fish. You can visit my blog.

    Sunday, May 31, 2009 at 11:26 pm | Permalink
  3. Interesting and informative. But will you write about this one more?

    Thursday, March 11, 2010 at 9:16 pm | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*