Resizable/Dynamic Array is my 3rd semester course Data Structures and Algorithms project.
This project contains following Methods:
-
insert_at_first Insert value before head of an Array.
-
insert_at_end Insert value at last at last, It resize the Array as values get inserted.
-
insert_at_middle Takes two inputs insertedvalue(value going to be inserted) and Insertafter(value after which we want to insert new value), It also Resize the array.
-
delete_at_first Deletes Value at first index(0) with that size of list get decreased.
-
delete_at_end deletes Value at last index with that size of list get decreased.
-
shrink Takes one input(value going to be deleted), It deletes that particular value which shrinks the size of array.
-
minimum_value Returns minimum value in Array.
-
maximum_value Returns maximum value in Array.
-
printarray Returns Array
First of all get started by cloning this repository on your machine.
git clone git@github.com:rawheel/Resizable-Array-python.git
Now,
- Run resizable_array.py