Why there is a heap buffer overflow in C language when trying to solve this “find middle index” question?
The problem is basically find the index which make the sum of the numbers before the index and the sum of the numbers after the index equal. When I try to solve this problem on leetcode,I always get a heap buffer overflow warning on the