recategorized by
282 views
0 votes
0 votes

In https://gateoverflow.in/343341/Gate-overflow-data-structures-1-11 

Suppose $L$ is : 10 → 50 → 20 → 40 → 30

& $K$ is : 4, 1, 5

Wouldn’t the explained algorithm print values: 10 40 30 instead of 40 10 30?

Won’t it require an algorithm that searches $L$ one by one for all values of $K$ in $O(nk)$ ?

recategorized by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
o asked Feb 2, 2022
432 views
In https://gateoverflow.in/356090/Gate-overflow-mock-test-4-56 Aren't asynchronous flip-flops supposed to update output sequentially due to delay?I am getting answer Q0 Q...
0 votes
0 votes
0 answers
2
o asked Jan 31, 2022
522 views
In this question – https://gateoverflow.in/348646/Gate-overflow-linear-algebra-1-10 for$A=\begin{bmatrix} 0 & i\\ -i& 0 \end{bmatrix}$how is (B) valid ?
0 votes
0 votes
0 answers
3
Ray Tomlinson asked Oct 26, 2023
199 views
by today my go pdf 2022 vol 3 is not opening i studying from last yr on this book by tick mark the good question anyone help how to resolve thid issue
1 votes
1 votes
1 answer
4