Please enter your email address or userHandle.
You are given a positive integer N and you have to find the number of non negative integral solutions to a+b+c=N.
N = 10
There are 66 possible solutions.
N = 20
There are 231 possible solutions.
You don't need to read input or print anything. Your task is to complete the function noOfIntSols() which takes an Integer N as input and returns the number of integer solutions possible.
Expected Time Complexity: O(1)
Expected Auxiliary Space: O(1)
1 <= N <= 109
We strongly recommend solving this problem on your own before viewing its editorial. Do you still
want to view the editorial?
Login to access your submissions.