Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
olliej
2y ago
0 comments
Save
Share
adding @cache meaningfully changes the algorithmic complexity from O(1.8^^N) (iirc - it's obviously exponential) to O(N).
0 comments
1 comments · 1 top-level
top
newest
oldest
kstrauser
2y ago
Yep. That’s what I mean about cleverer algorithms. And while you could certainly do the exact same thing in C, it wouldn’t be a one-line change you could casually add and move on from.
j
/
k
navigate · click thread line to collapse