Challenge: Maximum Number of Prizes
Solve the Distinct Summands Problem.
We'll cover the following
Problem
Distinct Summands Problem
Represent a positive integer as the sum of the maximum number of pairwise distinct positive integers.
Input: An integer .
Output: The maximum such that can be represented as the
sum of distinct integers.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.