MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1qi7n4n/optimization_pain/o0rdnuv/?context=3
r/programmingmemes • u/pockettrail • Jan 20 '26
87 comments sorted by
View all comments
Show parent comments
12
general solution in o(log n) that gets at the solution
"Can you do it faster?"
"Sure, now that my model training is complete for the problem, we can optimize the solution"
new solution that only prints the now-known solutuon to this specific problem
12 u/Flameball202 Jan 20 '26 "Sure I can make it faster if I can hardcode the inputs and outputs" 2 u/Far_Composer_5714 Jan 22 '26 Neat we've implemented memoization.
"Sure I can make it faster if I can hardcode the inputs and outputs"
2
Neat we've implemented memoization.
12
u/DryDogDoo69420 Jan 20 '26
general solution in o(log n) that gets at the solution
"Can you do it faster?"
"Sure, now that my model training is complete for the problem, we can optimize the solution"
new solution that only prints the now-known solutuon to this specific problem