Dynamic Array

Dynamic Array class  package datastructure.algorithms.ArrayList; /** * * @author GOKUL */ public class ArrayList<T> { private Object[] array; private int size; private int index = -1; public ArrayList() { this.size = 5; array = new…

Linked List

Node class /** * * @author GOKUL */ public class Node { private int data; private Node next; public Node(int data,Node next) { this.data=data; this.next=next; } public int getData() { return data; } public void…