507 views
0 0 votes

1. Write steps to perform the following operations on the singly linked list given below:

i. Insert 96 at the beginning of the list.

ii. Insert 17 at the end of the list.

iii. Remove the first element of the list.

iv. Remove the last element of the list.

 

Please log in or register to answer this question.

Position:
Show:

Related questions

2 2 votes
1 1 answer
558
558 views
Ebrahim asked Sep 28, 2024
558 views
1. Write an algorithm to store N numbers in an array. Find the product of the elements of the array that are odd.
1 1 vote
1 1 answer
401
401 views
Ebrahim asked Sep 28, 2024
401 views
1. Write steps to perform the following operations on the singly linked list given below:i. Insert 96 at the beginning of the list.ii. Insert 17 at the end of the list.ii...
1 1 vote
1 1 answer
1.6k
1.6k views
ykrishnay asked Aug 5, 2022
1,643 views
as we allocate the space for node in linked list using malloc() so how many bytes malloc allocate for the 1 node i.e. actual value of malloc allocates in ram like i write...
0 0 votes
0 0 answers
1.6k
1.6k views
Lakshman Bhaiya asked Oct 17, 2018
1,597 views
Suppose there are two singly linked lists both of which intersect at some pointand become a single linked list. The head or start pointers of both the lists are known, bu...