面试题57 - II
输入一个正整数 target ,输出所有和为 target 的连续正整数序列(至少含有两个数)。
序列内的数字由小到大排列,不同序列按照首个数字从小到大排列。
限制:
1 <= target <= 10^5
Solutions
math
Similar to
problem 829
. Check it for detailed explanation.
Or
Last updated
Was this helpful?
输入一个正整数 target ,输出所有和为 target 的连续正整数序列(至少含有两个数)。
序列内的数字由小到大排列,不同序列按照首个数字从小到大排列。
1 <= target <= 10^5
math
Similar to problem 829
. Check it for detailed explanation.
Or
Last updated
Was this helpful?