News for hackers. Stuff that matters.
Re:Dynamic Programming vs. Divide-and-Conquer (2018) by rmk on Sunday April 25, 2021 @02:49PM (#26935404)
Very nice! I often forget this handy thing during interviews. Good thing to impress your interviewer with :)
Re:Dynamic Programming vs. Divide-and-Conquer (2018) by rmk on Tuesday April 27, 2021 @11:28AM (#26957239)
One thing of note: The arguments to the method you are memoizing need to be hashable. For example, if you want to memoize a method call whose parameters include a list, you will get an error!