Posts by Yan Mendes • 79 points
1 post
-
7
votes2
answers169
viewsQ: Recursive code C++
I have the following iterative function: int getNumPastasColididas(int i){ int c = 0; for(int i = 0; i < size; i++) c += table[i].hasColided; return c; // c = 89832 } I tried to play the function…