打指纹归来,报告一下# Immigration - 落地生根
l*r
1 楼
Looks like an old question, but can anyone do it better than n*n?
The question is:
given an array of numbers, find all values in them that a*a + b*b = c*c
Standard way is to convert it to 3SUM, which is n*n. But I heard people can
do it better than that.
Thanks.
The question is:
given an array of numbers, find all values in them that a*a + b*b = c*c
Standard way is to convert it to 3SUM, which is n*n. But I heard people can
do it better than that.
Thanks.