Count the number of ways to partition a positive integer into positive integers.
Constraints
Example
>>> partition(4) 5 >>> partition(5) 7 >>> partition(6) 11 >>> partition(0) 1 >>> partition(1) 1
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints