Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kleiba2
20 days ago
|
parent
|
context
|
favorite
| on:
What algorithm did Windows XP use to choose your i...
On count == 1, the winner gets set to the first element, true. But the function does not return yet! So the value might get overwritten during the remainder of the for-loop.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: