Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
teo_zero
on July 7, 2023
|
parent
|
context
|
favorite
| on:
{n} times faster than C
But this is not the original problem! Only p's should decrease the counter, in your code every non-s does.
utopcell
on July 8, 2023
[–]
The original problem was working on strings that only hold 's' and 'p' characters, as seen in bench.c. The first implementation checked against 's' and 'p' specifically, and all subsequent version optimized that first version.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: