Recent questions tagged linked-list

0 0 votes
1 1 answer
2.4k
2.4k views
How to Visualize this code ?#include<stdio.h #include<stdlib.h struct node{ int data; struct node *next; }; void addFirst(struct node head,int val){ struct node *newNode...
1 1 vote
0 0 answers
678
678 views
Can anyone explain this question to me
42 42 votes
6 6 answers
27.2k
27.2k views
Let $\textsf{SLLdel}$ be a function that deletes a node in a singly-linked list given a pointer to the node and a pointer to the head of the list. Similarly, let $\textsf...
0 0 votes
1 1 answer
1.3k
1.3k views
What does the following routine do on doubly linked list. M is some middle node address and N is a newly inserted node address.N → lptr = M ;N → rtptr = M → rptr ;N → lpt...
24 24 votes
2 2 answers
1.8k
1.8k views
Consider the following linked list of $\textsf{ListNode}$ objects, with a pointer named front that points to the first node:$$\text { front } \rightarrow \rightarrow \r...
2 2 votes
1 1 answer
1.3k
1.3k views
The following C function rearranges the members of a single-linked list of integers that is passed as a parameter. The list of numbers 1, 2, 3, 4, 5, 6, and 7 in the spec...
1 1 vote
1 1 answer
1.3k
1.3k views
Which data structure would be most appropriate to implement a collection of values with the following 3 characteristicsSingly link list with head and tail pointerDoubly l...
0 0 votes
1 answers 1 answer
1.2k
1.2k views
Can there be “Stack Overflow” in Linked list Implementation of stack? If Yes, how?
0 0 votes
0 0 answers
2.4k
2.4k views
DOUBT 1: if head = P → link.is performed then what will happen to the nodes containing values a and b? will they get removed as no link is pointing them?and we will le...