1,278 views
0 0 votes
complexity of  algorithm to interchange  the nth and mth element (node) of singly link list is:

a.m+n

b.m if m>=n otherwise n

c.m if m<=n otherwise n

d.m+min(m,n)

ans given c???????????how

Please log in or register to answer this question.

Position:
Show:

Related questions

2 2 votes
1 1 answer
597
597 views
Vyshakh_Nambiar asked Dec 24, 2025
597 views
Solution for above question Given : 1076My Solution: 1094My approch:PUSH 50 element from index 99, pos at 49.POP 8 elements, pos at 58.PUSH 10 elemnts, pos at 47.1000+47*...
0 0 votes
1 1 answer
241
241 views
Atreo asked Dec 18, 2025
241 views
How can we implement a doubly linked list to build a stack and find the median? What would be the time complexity (insertion, deletion and median) ?
1 1 vote
1 1 answer
692
692 views
SoloSword asked Nov 4, 2025
692 views
consider a rooted binary tree with n nodes represented using pointers. What is the best possible upper bound to compute the number of such subtrees , which are full binar...
0 0 votes
1 1 answer
609
609 views
deepak_8404 asked Oct 1, 2023
609 views
Consider a lower triangular matrix stored in row major order as p[-25 - - + 749][-25 - - - + 749] with base address = 6800, size of each element = 6 byte. Find the value ...