You are viewing a single comment's thread. Return to all comments →
I'm not sure that function in problem description is correct.
if (step == N) { score += V[step]; return (score); }
If size of V array is N, then V[N] is out of boundaries access. Am I wrong?
Robot
You are viewing a single comment's thread. Return to all comments →
I'm not sure that function in problem description is correct.
If size of V array is N, then V[N] is out of boundaries access. Am I wrong?