for(int i = 0 ; i < n ; i++) {
a[i] = scan.nextInt();
}
for(int i = 0 ; i < n ; i++) {
for(j = n ; j >= 0 ; j--)
a[j] = a[j] + a[i];
}
I cant seem to properly find the time complexity of the code or convert to big O. I know the first loops is 1 + (n+1) + 1 and i think the 2nd/3rd ones are N*(1 - (N-1) * 1)