package com.ds.algorith ms.linkedlist.D LLImplementatio n;
import java.util.NoSuc hElementExcepti on;
/**
* @Author pankaj
* @create 4/12/21 7:05 PM
*/
public class DoublyLinkedLis t {
private Node head;// first node of DLL
private Node tail;//Last Node of DLL
private int length;// length of DLL
private class Node{
private int...
User Profile
Collapse
-
Doubly Linked List In java || Implement DLL Data Structure
-
How to implement singly linked list in Java
package com.ds.algorith ms.linkedlist.S LLcustomImpleme nt;
/** * @Author pankaj * @create 4/11/21 6:19 PM */
public class Node {
int data;
Node next;
}
— — — — — — — — — — — — — — — — — — — — — — — — — — — —
package com.ds.algorith ms.linkedlist.S LLcustomImpleme nt;
/**
* @Author pankaj
* @create 4/11/21 6:25 PM
*/
... -
How to implement ArrayList data structure in Java
package com.ds.algorith ms.arraylist;
/**
* @Author pankaj
* @create 4/10/21 6:37 PM
Why to use ArrayList:
is a re-sizable array, also called a dynamic array(Growable array/ resizable Array). It grows its size to accommodate new elements and
shrinks the size when the elements are removed.
---> ArrayList internally uses an array to store the elements. Just like arrays, It allows you to... -
Arrays in Java| One D Arrays| 2 D Array |3 D Arrays
Implement One Dimensional Arrays in java
package com.ds.algorith ms.array;
import java.util.Scann er;
/**
@Author pankaj
@create 09/04/21 5:14 PM
Note: Arrays are Fixed in Size
Array store only homogeneous element */ public class ImplementOneDAr ray { public static void main(String[] args) { Scanner scanner=new Scanner(System. in); System.out.prin tln("Plz Enter the Size of...
No activity results to display
Show More