insertion n deletion in array
insertion n deletion in array
For e
A Is aray o size 7 but
Suppose 5 elemento
ie
A is
holding
A {2,3,4 t ,
Represethon:
A 2 3
2 2
the is T,but
Here, the capacty ccupie d
5 positins ate
Steps:
1. start fom
the |ast occupied postim
shifti
( iode 4, Vole ) and slep
Hght to index S.
2 3
2 34
2
2
NOo index 2 is ee, So insert 2 in thi
Position
inal aray after in sertom
2 3 |2
2 3
DiscusS Deletion
2.
Move elenent
to index
2 3
2 3