情人节 Vs 妇女节 嫩们分的清楚吗(男生回答)# Joke - 肚皮舞运动
x*g
1 楼
given an array, find all possible sets of elements which sums as 0.
for example:
input:
[-1, -2,-3, 3, 4, 5]
output:
[-1, -2, 3]
[-2,-3,5]
[-3, 3]
有什么好办法呀?
for example:
input:
[-1, -2,-3, 3, 4, 5]
output:
[-1, -2, 3]
[-2,-3,5]
[-3, 3]
有什么好办法呀?