One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
class Solution { | |
public int solution(int[] A) { | |
long N = A.length +1; | |
long totalSum = (N*(N+1))/2; | |
for(int i=0; i<A.length; i++){ | |
totalSum -= A[i]; | |
} | |
return (int)totalSum; |