Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Tistron
11 days ago
|
parent
|
context
|
favorite
| on:
4 billion if statements (2023)
You can do it even even faster by replacing your if statements (works because the ascii values end in the digit they represent):
if (d & 1) printf("odd\n"); else printf("even\n")
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: