in reply to Advanced Data Structure Question

One final note - the number of items will never exceed 1000.

I can't tell you how many times I've been bitten by things like this... the check is in the mail ;-)

Replies are listed 'Best First'.
Re^2: Advanced Data Structure Question
by Limbic~Region (Chancellor) on Apr 20, 2006 at 12:27 UTC
    spiritway,
    This is not a general purpose solution. It is addressing a specific mathematical problem that by its definition can't exceed 1000. Normally when I think something is bounded that I have no control over I stipulate that it should not <fill in the blank> and that I would want to know about it if it does.

    Cheers - L~R

      Well, I meant no harm or insult in my comment. I've just found that when I write something for a very limited purpose, it often happens that I eventually come to regret making it so limited. Don't let me spoil the fun, though - if your example won't go beyond 1000 elements, then that's a useful bit of information. Good luck.