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

30.) DP on subsequences

19. Strings (LB)

32. Binary Trees-2 (bfs/dfs med problems)