0829. Consecutive Numbers Sum
https://leetcode.com/problems/consecutive-numbers-sum
Description
Given an integer n
, return the number of ways you can write n
as the sum of consecutive positive integers.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= n <= 109
ac
Previous0828. Count Unique Characters of All Substrings of a Given StringNext0830. Positions of Large Groups
Last updated