0

i needed some help with these problem in DSA

For the given pseudo code:

for( i=0; i<n; i++ ) a[i] = 0; 
for( i=0; i<n; i++ )
  for( j=0; j<n; j++ ) 
    a[i] += a[j] + i + j;

Determine:

1. Total number of primitive operations
2. Running Time
John L.
  • 38,985
  • 4
  • 33
  • 90
James
  • 1

0 Answers0