Yes, as far as I can tell you have the only correct answer in the thread (I went back and fixed my +1 error ).

Congratulations on your job at nVidia.

But, if I gave this as an interview question, my next question would be: "Can you do it without the loop?".

Last edited by Doug; 10/29/07 20:24.

Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI