mdj
Re:Array Iteration Interview Problem
on Wednesday August 01, 2012 @08:52PM (#4326613)
The OP's implementation wastes cycles in the n == 0 case because the statement `if (count == n)` is unnecessary.