Algorithms and Data structures | Sololearn: Learn to code for FREE!


Algorithms and Data structures

Write a c++code for insertion and deletion in a two dimensional array


2/22/2020 12:15:04 PM

Osei Fordjour Lawrence

4 Answers

New Answer


Hey Osei Fordjour Lawrence, if you need assistance in writing such a code, please provide what you have attempted so far, preferably in form of a saved code, so we can determine where you are stuck. If, however, this is supposed to be a challenge for other users, please move this thread to your personal feed. Also, kindly review:


Well, what does insert and deletion mean in this case? Is an element overwritten, or should the array grow/ shrink in size? In case of the latter you will need dynamic memory.


ok i understand


int A[3][3] for(int i =0; i<3;i++) { for(int j=0;j<3;j++) {std::cin>>A[i][j] this is where i have gotten to any help on how to insert and delete ?