You are on page 1of 3

DEPARTMENT OF

COMPUTER SCIENCE & ENGINEERING

Experiment1.3
Student Name: Anjali UID: 21BCS4100
Branch: CSE Section/Group: 644 B
Semester: 5th Date of Performance:31/07/23
Subject Name: Advanced Programming Subject Code: 21CSP-314

1. Aim: LINKED LIST


a) Given the pointer to the head node of a doubly linked list, reverse the
order of the nodes in place. That is, change the next and prev pointers of
the nodes so that the direction of the list is reversed. Return a reference
to the head node of the reversed list.

b) Given a reference to the head of a doubly-linked list and an integer data


, create a new DoublyLinkedListNode object having data value and
insert it at the proper location to maintain the sort.

2. Objective:

a) Complete the reverse function in the editor below.

b) Complete the sortedInsert function in the editor below.


DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

3. Output: a)
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

b)

You might also like