How can I make this algorithm more efficient for a puzzle?

前端 未结 0 660
野性不改
野性不改 2021-02-13 05:00

The puzzle is: given a number n, I need to return an array containing all numbers whose sum of their squares equals n2 in a increasing sequence. For ex

相关标签:
回答
  • 消灭零回复
提交回复
热议问题