Java, Recursive find order of square sums with given length

后端 未结 0 1802
北海茫月
北海茫月 2021-01-15 21:20

Write function that, given an integer number N, returns array of integers 1..N arranged in a way, so sum of each 2 consecutive numbers is a square.

Solution is valid

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