Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Recent questions tagged linked-list
1
vote
1
answer
151
Linked List
How D) could be answer here? I think for head->next=temp; will not work properly. Am I doing any mistake?
srestha
asked
in
DS
Jan 26, 2018
by
srestha
900
views
linked-list
data-structures
4
votes
0
answers
152
Linked List
N items are stored in a sorted doubly linked list. For a delete operation, a pointer is provided to the record to be deleted. For a decrease-key operation, a pointer is provided to the record on which the operation is to be performed. An algorithm performs the following ... (C) O(N2) (D) Θ(N2 Log N) Doubt : What is decrease key? Decreasing the value? and answer to the question.
gauravkc
asked
in
Programming in C
Jan 18, 2018
by
gauravkc
736
views
linked-list
data-structures
3
votes
2
answers
153
Linked List
Which of the following is worst choice to sort a linked list? a)Merge Sort b) Quick Sort c) heap sort d) Insertion sort
srestha
asked
in
DS
Jan 17, 2018
by
srestha
3.1k
views
linked-list
data-structures
3
votes
1
answer
154
Data Structure
The minimum size of queue required when performing BFS on above graph is ________. (Size of queue is represented by maximum number of element at any time). I am getting 3. Consider 3 dimensional Array A[90] [30] [40] stored in linear array in column major order. If ... [20] [30] is ________. (Assume the first element is stored at A[1][1][1] and each element take 1 memory location)
Shubhanshu
asked
in
Programming in C
Jan 9, 2018
by
Shubhanshu
916
views
data-structures
algorithms
linked-list
2
votes
0
answers
155
What will be the output of this C program
What will be the output of following programs : void fun1(struct node* head) { for(head == NULL) { return; } fun1(head->next); printf("%d ", head->data); } And this one ! void fun1(struct node* head) { while(head == NULL) { return; } fun1(head->next); printf("%d ", head->data); }
_shashi
asked
in
Programming in C
Jan 8, 2018
by
_shashi
1.8k
views
programming-in-c
linked-list
1
vote
1
answer
156
Linked list
In a circular single linked list how many external pointers are there because in some books there are two external pointers start pointing at first node and last pointing at last node while some given only last pointer and some have only first pointer
kd.....
asked
in
DS
Dec 30, 2017
by
kd.....
951
views
linked-list
data-structures
programming-in-c
algorithms
–1
vote
0
answers
157
Linked_list
Insertion at beginning and end ....both require theta(n) ?
Pawan Kumar 2
asked
in
Programming in C
Dec 21, 2017
by
Pawan Kumar 2
305
views
linked-list
0
votes
2
answers
158
Ace Test Series: Programming & DS - Linked Lists
What is the time complexity to insert a new Node in a singly circular linked list at Starting ? (Number of nodes in list = N) A. O(1) B. O(N)
Mr_22B
asked
in
Programming in C
Dec 10, 2017
by
Mr_22B
2.3k
views
ace-test-series
linked-list
data-structures
1
vote
1
answer
159
Linked list doubt previous year question
The following C function takes a single-linked list of integers as a parameter and rearranges the elements of the list. The function is called with the list containing the integers 1, 2, 3, 4, 5, 6, 7 in the given order. What will be the contents of the list after ... ;value = temp; p = q ->next; q = p? p ->next : 0; } } What is meant by line 1?
hem chandra joshi
asked
in
Programming in C
Dec 9, 2017
by
hem chandra joshi
794
views
linked-list
1
vote
1
answer
160
linked lists and bit vectors
Consider the following statements about free space management I) Bit vectors are inefficient unless the entire vector is kept in main memory. II) Linked list approach requires less I/O time. III) Linked list approach is more efficient than bit vectors in terms of storage space. Which of the following statements is/are TRUE:?
Parshu gate
asked
in
DS
Nov 26, 2017
by
Parshu gate
887
views
linked-list
data-structures
1
vote
0
answers
161
linked list
Let P be a single linked list.Let Q be a pointer to an intermediate node 'X' in the list.What is the worst case time complexity of best known algorithm to delete the node 'X ' from the list
saipriyab
asked
in
Programming in C
Nov 25, 2017
by
saipriyab
1.4k
views
linked-list
algorithms
data-structures
2
votes
1
answer
162
Data structure
what should be the statement at A
nikkey123
asked
in
DS
Nov 21, 2017
by
nikkey123
396
views
data-structures
linked-list
0
votes
2
answers
163
Circular single linked list conceptual
Please explain how to approach this problem?
Parshu gate
asked
in
Mathematical Logic
Nov 19, 2017
by
Parshu gate
524
views
linked-list
1
vote
1
answer
164
Linked List
Here In this question it is given that we have to perform nlogn decrease key operation and n find operation . 1)Finding an element in the linked list itself takes O(n) and there are N such operations total=O(n2). 2)Decrease key: Find key O(n) + O(1) for decrease=O(n) and there are nlogn such operations: total O(n2logn). Please correct Me : Image :
saxena0612
asked
in
DS
Nov 16, 2017
by
saxena0612
1.2k
views
data-structures
linked-list
time-complexity
made-easy-test-series
3
votes
1
answer
165
Circular Linked List
In circular singly linked list, insertion of node requires modification of how many pointers? 1 pointers 2 pointers 3 pointers 4 pointers
hacker16
asked
in
Programming in C
Nov 14, 2017
by
hacker16
21.2k
views
linked-list
data-structures
5
votes
1
answer
166
Linked List (Time Complexity)
What would be the asymptotic time complexity to add a node at the end of singly linked list, if the pointer is initially pointing to the head of the list? O(n) O(1) θ(n2) θ(n)
hacker16
asked
in
DS
Nov 14, 2017
by
hacker16
3.4k
views
data-structures
linked-list
time-complexity
1
vote
1
answer
167
linked lists
Consider the following Linked list Node structure struct Node { int data; struct Node * next; } typedef struct Node Node; Consider the following function to reverse the singly linked list Node* reverse_list(Node *head) { Node *temp = NULL; Node *next ; while(head) { next = 1 ... respectively (A) head, head->next (B) head->next,head (C) NULL, head->next (D) head->next, next
Parshu gate
asked
in
DS
Nov 11, 2017
by
Parshu gate
960
views
data-structures
linked-list
0
votes
1
answer
168
linked list
i am getting 7 but ans given is 6.
raviyogi
asked
in
Programming in C
Nov 7, 2017
by
raviyogi
421
views
linked-list
programming-in-c
1
vote
0
answers
169
linked list conceptual
Parshu gate
asked
in
DS
Nov 6, 2017
by
Parshu gate
469
views
linked-list
data-structures
5
votes
1
answer
170
Loop detection in a Linked list
Consider the following code which is used to detect the loop in the linked list. Find the missing statement A? p = head; q = head->next; while(A) { if(p == q) exit(0) //loop detected p = p->next; q = (q->next)?(q->next->next) : q-> ... (p!=NULL) || (q!=NULL) Given ans is c.......but I think b could also be correct if not than why..... Please explain
Shivi rao
asked
in
Programming in C
Nov 2, 2017
by
Shivi rao
1.3k
views
linked-list
data-structures
5
votes
1
answer
171
In-place Merge Sort via Doubly linked list in place of Array
In general merge sort is not considered in-place sorting technique. Because an auxiliary array is used. If we will try to do it in-place in array data structure then our merge procedure will take O($n^2$) time. so overall ... list in place of Array (for storing and merging data) ? Please share your valuable opinion. It will be great help.
Chhotu
asked
in
Algorithms
Nov 2, 2017
by
Chhotu
1.4k
views
algorithms
sorting
space-complexity
linked-list
time-complexity
1
vote
1
answer
172
Linked List
Consider the following program struct node { int value; Node *next; } boolean fun(Node *head) { Node *a,*b; a=head; if(a==NULL) return TRUE; b=a->next; while(b!=NULL && b!=a) { b=b->next; if(b==NULL) return TRUE; b=b->next; a=a->next; } return(b==NULL); } Is the following code return this? a)
srestha
asked
in
DS
Oct 28, 2017
by
srestha
671
views
linked-list
data-structures
2
votes
1
answer
173
Linked List
Which of the following operations is performed more efficiently by doubly linked list than by linear linked list? (a). Deleting a node whose location is given. (b). Searching an unsorted list of a given item. (c). inserting a node after the node with a given location. (d). Traversing the list to process each node.
Shubham Kumar Gupta
asked
in
Programming in C
Oct 26, 2017
by
Shubham Kumar Gupta
3.1k
views
linked-list
data-structures
programming-in-c
queue
3
votes
1
answer
174
2. Linked List
Consider the given Doubly Linked List: Consider C like language code snippet with respect to doubly linked list given "p" is pointer to linked list node p=first->next->next->next->prev; p->next->next->prev=p; printf("%d",p->next->next->prev->next->data); What is the output?Plz explain
srestha
asked
in
DS
Oct 17, 2017
by
srestha
704
views
linked-list
data-structures
1
vote
0
answers
175
Testbook Test Series: Programming & DS - Linked Lists
Consider the following code which is used to detect the loop in the linked list. Find the missing statement A? p = head; q = head->next; while(A) { if(p == q) exit(0) //loop detected p = p->next; q = (q->next)?(q-> ... to the end of the linked list. my answer is q!=NULL and it is in one of the options. Please correct me if I am wrong.
Jaspreet Singh 4
asked
in
DS
Oct 14, 2017
by
Jaspreet Singh 4
626
views
data-structures
linked-list
testbook-test-series
0
votes
1
answer
176
Linked List
Suppose p and q are 2 nodes in linked list, where p pointing to head node and q pointing to next to head node. Now, chk this condition while(A) { if(p==q)exit(0); p=p->next; q=(q->next)?(q->next->next):q->next; } ... >next->next? And what should be value of A, so that this while loop satisfies the condition that this linked list satisfies the condition for a loop?
srestha
asked
in
DS
Oct 13, 2017
by
srestha
1.2k
views
linked-list
data-structures
0
votes
1
answer
177
ace test
What is best time complexity to search element in sorted doubly linkedlist?? O(n) O(nlogn) O(log n) O(n2)
ADITYA CHAURASIYA 5
asked
in
DS
Sep 28, 2017
by
ADITYA CHAURASIYA 5
378
views
time-complexity
ace-test-series
linked-list
3
votes
1
answer
178
Asymptotic Notation
What is the time complexity to find Kth minimum element from a doubly linked list having 'n' elements? (A) O (n log K ) (B) O (n log n ) (C) O (K log n ) (D) O ( n )
Harsh Mehta
asked
in
DS
Sep 25, 2017
by
Harsh Mehta
1.6k
views
data-structures
linked-list
time-complexity
0
votes
2
answers
179
DS-linked_list
With regard to linked list, which of the following statement is false ? (A) An algorithm to search for an element in a singly linked list requires 0(n) operations in the worst case. (B) An algorithm for deleting the first element in a singly linked ... list requires 0(n) operations. (D) An algorithm for deleting the middle node of a circular linked list requires 0(n) operations.
rishu_darkshadow
asked
in
DS
Sep 21, 2017
by
rishu_darkshadow
889
views
linked-list
0
votes
1
answer
180
UGC NET CSE | December 2009 | Part 2 | Question: 24
With regard to linked list, which of the following statement is false ? (A) An algorithm to search for an element in a singly linked list requires 0(n) operations in the worst case. (B) An algorithm for deleting the first element ... 0(n) operations. (D) An algorithm for deleting the middle node of a circular linked list requires 0(n) operations.
rishu_darkshadow
asked
in
DS
Sep 17, 2017
by
rishu_darkshadow
2.6k
views
ugcnetcse-dec2009-paper2
data-structures
linked-list
time-complexity
Page:
« prev
1
2
3
4
5
6
7
8
9
next »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent questions tagged linked-list
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...