Skip to content

Instantly share code, notes, and snippets.

@rohan-varma
Created September 9, 2016 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohan-varma/e7240fb0a85432a7cca49d420677a869 to your computer and use it in GitHub Desktop.
Save rohan-varma/e7240fb0a85432a7cca49d420677a869 to your computer and use it in GitHub Desktop.
int* getProductsOfAllIntsExceptAtIndex(int* arr, int len) {
int* x = new int[len];
for(int i = 0 ; i < len ; i++) {
x[i] = getProduct(arr, len, i);
}
return x;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment