mm-2649 === Subject: Re: easy question about algorithm complexity I think you didn't understand the question, which is about algorithm efficiency. It is not even an issue whether the algorithm produces the correct answer, but how many operations it takes to arrive at that answer. I assume (from what was given as the book answer) that only the operations in Step 2 are counted. While k