From: Noel Welsh (noelwelsh at gmail.com) Date: Thu Sep 9 03:51:34 EDT 2010 |
|
On Thu, Sep 9, 2010 at 4:35 AM, Scott Hickey <jscotthickey at gmail.com> wrote: > I was helping my son with his math homework tonight, working with > medians and wrote the following below. As I was looking at it, I was > wondering: ... I think this is great code -- very clear. For production use you have the wrong data structure (Lists are O(n) random access and length; you want O(1) vectors), but that doesn't matter for your use. Cheers, N.
Posted on the users mailing list. |
|