[prev] 22 [next]

Exercise #3: Bracket Matching Algorithm

Trace the algorithm on the input

void f(char a[], int n) {
   int i;
   for(i=0;i<n;i++) { a[i] = a[i]*a[i])*(i+1); }
}