What's wrong? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
9th Jul 2021, 2:01 PM
Olka Berkovich
Olka Berkovich - avatar
3 Answers
0
..problem lies in the second for - loop, I guess. it should be, for( int i = index; ... newArr[i] = arr[i + 1]; i.e, skip deleted item and continued to build newArr. make sense??
9th Jul 2021, 3:17 PM
Sivakkolunthu Sivapalan
Sivakkolunthu Sivapalan - avatar
0
The problem is that you're programming in C# (I guess)
9th Jul 2021, 5:57 PM
Angelo
Angelo - avatar
0
Joeyoeb slhdij ieuodnos lduodu Anthony Heredia kduodu lzyodlzyo idyo
10th Jul 2021, 2:40 PM
Anthony Heredia Heredia