k*p
1 楼
我无耻,我少写了个条件
要保证B数组也是升序排列的。
新题:
one integer array A with ascending order, for example 1 ,2 ,3,4, please
generate another array B with any sum of any 3
different numbers picked from the A with ascending order, for example for 1,2,3,4, the result is
(1+2+3),(1+2+4),(1+3+4),(2+3+4)“
原来的题:
”
one integer array A with ascending order, for example 1 ,2 ,3,4, please
generate another array B with any 3
different numbers picked from the A, for example for 1,2,3,4, the result is
(1+2+3),(1,2,4),(1,3,4),(2,3,4)“
谢谢。
要保证B数组也是升序排列的。
新题:
one integer array A with ascending order, for example 1 ,2 ,3,4, please
generate another array B with any sum of any 3
different numbers picked from the A with ascending order, for example for 1,2,3,4, the result is
(1+2+3),(1+2+4),(1+3+4),(2+3+4)“
原来的题:
”
one integer array A with ascending order, for example 1 ,2 ,3,4, please
generate another array B with any 3
different numbers picked from the A, for example for 1,2,3,4, the result is
(1+2+3),(1,2,4),(1,3,4),(2,3,4)“
谢谢。