in reply to Re^2: Printing largest number in array using loops and if statement
in thread Printing largest number in array using loops and if statement
But now your loop has one iteration too many as the first time into the loop the test necessarily fails.One extra comparison vs one call to shift? That isn't anything I'd lose any sleep over.
Premature optimization is the root of all evil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Printing largest number in array using loops and if statement
by CountZero (Bishop) on Jan 17, 2010 at 07:48 UTC |