Skip to content

The memo that returned the wrong answer

A recursive function takes (index, remaining). It is memoised on index alone. It runs fast and returns wrong answers.

Why?