Smallest Positive Integer that can not be represented as Sum
Given an array of size N, find the smallest positive integer value that cannot be represented as sum of some elements from the array.
- Time : O(nlogn)
- Space : O(1)
1 | class Solution { |
Smallest Positive Integer that can not be represented as Sum
Given an array of size N, find the smallest positive integer value that cannot be represented as sum of some elements from the array.
1 | class Solution { |