Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
MisterTea
on July 7, 2023
|
parent
|
context
|
favorite
| on:
{n} times faster than C
You can shorten the loop to just tree conditionals:
while (c = *input++) { if (c == 's') r++; if (c == 'p') r--; }
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: