53: Doubly Linked List-1

Representation:-

-----------------------------------------------------------------------------------------------------------------------------

Converting array to doubly LL:-


----------------------------------------------------------------------------------------------------------------------------

Deletions in DLL:-

1. Deleting head-


2. deleting tail-

3. deleting Kth node-⭐⭐

4. Delete given node-
----------------------------------------------------------------------------------------------------------------------------

Insertions in DLL:-

1. before head-


2. before tail-

3. before Kth node-

4. before given node-
-----------------------------------------------------------------------------------------------------------------------------

Comments

Popular posts from this blog

18. greedy algorithm

19. strings (LB)

17. BINARY SEARCH on 2d arrrays