You are viewing a single comment's thread. Return to all comments →
It's my solution in C++ but it's not working don't know why
int simpleArraySum(vector ar) { int ans = 0; int size = sizeof(ar) / sizeof(ar[0]); for(int i=0; i
Seems like cookies are disabled on this browser, please enable them to open this website
Simple Array Sum
You are viewing a single comment's thread. Return to all comments →
It's my solution in C++ but it's not working don't know why
int simpleArraySum(vector ar) { int ans = 0; int size = sizeof(ar) / sizeof(ar[0]); for(int i=0; i