Create and reverse a doubly linked list.
Suppose in an exam a teacher needs to assign topics to the “n” students in two sets according to their roll numbers. For this, he has to divide the students in two groups, one containing the even roll
number, other group having odd roll number. Out of 60 students, help the teacher to identify which set (A or B) the particular student will get. Write a program for the same.
For odd roll numbers- Set A
For even roll numbers– Set B
Example: n=2
enter 2 rollnos
1st Rollno: 7
Output: Set A
2nd Rollno: 16
Output: Set B
Write a program to add two sparse matrices and the resulting matrix should be converted to a representation matrix.
Develop an algorithm to implement Stack using Queue data structure.
Develop an algorithm to implement Queue using Stack data structure.