Given an array and group them as a possible sum

后端 未结 0 799
逝去的感伤
逝去的感伤 2021-02-04 05:46

Given an array and group them as a possible sum.

Input Only this array : [1,2,3,4,5]
Output : {[5,1] [4,2]} {[3,2] [4,1]}

Is there any way to solve this pro

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