DS List
DS List
int arr[max_rows][max_columns];
Initializing 2D Arrays
import java.util.Scanner;
for(int j=0;j<3;j++)
{
System.out.print("Enter Element");
arr[i][j]=sc.nextInt();
System.out.println();
System.out.println("Printing Elements...");
for(int i=0;i<3;i++)
System.out.println();
for(int j=0;j<3;j++)
System.out.print(arr[i][j]+"\t");
}
}
A linked list is a linear data structure, in which the elements are
not stored at contiguous memory locations. The elements in a
linked list are linked using pointers as shown in the below
image:
In simple words, a linked list consists of nodes where each node
contains a data field and a reference(link) to the next node in
the list.
Linked List Uses:
We can insert any node at any place easily and similarly we can
remove it easily.
3)Memory Utilization:
Insertion
SN Operation Description