Keep It Simple, Stupid | |
PerlMonks |
Re: Brute force vs algorithm (PWC # 100)by tybalt89 (Monsignor) |
on Feb 15, 2021 at 21:06 UTC ( [id://11128419]=note: print w/replies, xml ) | Need Help?? |
Classic caching problem. Each cell is computed only once.
It wasn't clear from the problem whether just the sum was needed or the whole path. This just returns 8
In Section
Meditations
|
|