|
|
|
|
|
by jliszka
4622 days ago
|
|
You're right, there's only O(n) information in these particular n x n matrices, so you can multiply them in O(n^2). The code provided memoizes cell values using the key (r - c), so only O(n^2) work is required to read off the top row of the matrix. I'm planning to make that more explicit in a follow-up post. |
|