SHARE
TWEET

Untitled

a guest Oct 21st, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public int[] convo(int[] a, int[] b, int n)
  2. {
  3.    int[] c = new int[a.length];
  4.    for(int i =0; i<n-1; i++)
  5.    {
  6.       for(int j=0;j<n;j++)
  7.       {
  8.       int k = (i+j)%n;
  9.       c[k] += a[i]*b[j];
  10.       }
  11.    }
  12.    return c;
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top