Posted in All Posts, Semester 3

Sem 3 – DS Unit 1 Programs

DS – Data Structures

Unit 1 – Link List

1. Write a program to implement following operations using Singly link list

  • Insert at first
  • Insert at Last
  • Insert at specified location (Before or After the Node)
  • Delete from first
  • Delete from last
  • Delete any specified node
  • Traversal
  • Sorting
  • Splitting
  • Merging
  • Counting Operations( Total no. of nodes, even and odd no. of nodes)

Download | View Code

2. Write a program to implement following operations using Doubly link list

  • Insert at first
  • Insert at Last
  • Insert at specified location (Before or After the Node)
  • Delete from first
  • Delete from last
  • Delete any specified node
  • Traversal
  • Sorting
  • Splitting
  • Merging
  • Counting Operations( Total no. of nodes, even and odd no. of nodes)

Download | View Code

Download All

I hope that you found this article to be helpful.
Please share your thoughts in the Comments Section.

If you liked this article, then please like Facebook page.

Suggested Reading

Comment your thoughts