829. Consecutive Numbers Sum
https://leetcode.com/problems/consecutive-numbers-sum/
Problem
Given a positive integer N
, how many ways can we write it as a sum of consecutive positive integers?
Example 1:
Example 2:
Example 3:
Note: 1 <= N <= 10 ^ 9
.
Solution
#math
Last updated
Was this helpful?