|
|
|
|
|
by pkhuong
1231 days ago
|
|
GP is referring to https://en.wikipedia.org/wiki/Lagrange_polynomial Build a table left[j] of product-of-ratios for i < j, and another right[k] for i > k, each in linear-time, and combine the two to find the product-of-ratio for i != m in linear time as well. |
|