822 views
0 votes
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.

Related questions

0 votes
0 votes
1 answer
1
deepak_8404 asked Oct 1, 2023
285 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 ...
–4 votes
–4 votes
2 answers
3
Souvik33 asked Oct 27, 2022
636 views
*MSQ*The following figure depicts a a. A tree and only treeb. A tree with 3 nodesc. A graph (Since every tree is a graph)d. A graph and only graph
0 votes
0 votes
1 answer
4
Overflow04 asked Sep 28, 2022
445 views
Can we determine unique tree by Inorder and level order traversal .