Lagrange’s four-square theorem and math for coding
91

I recently did lc #279 - perfect squares and was blown away by the lagrange's four-square solution.
unless you remeber theorem like this , you may not able to come up with the optimial solution in the interview.
are there general gudiance on famous theorems one should know for coding interview?

Comments (0)