logoalt Hacker News

bontaqyesterday at 10:08 PM1 replyview on HN

How's that O(N^2)? How's it O(N) with caching? Does a 3 turn conversation cost 3 times as much with no caching, or 9 times as much?


Replies

jannyferyesterday at 11:15 PM

I’m not sure that it’s O(N) with caching but this illustrates the N^2 part:

https://blog.exe.dev/expensively-quadratic

show 1 reply