1.

What technique is used in Transpose method?(a) searched node is swapped with its predecessor(b) node with highest access count is moved to head of the list(c) searched node is swapped with the head of list(d) searched nodes are rearranged based on their proximity to the head nodeMy question is based upon Types of Lists topic in chapter Types of Lists of Data Structures & Algorithms II had been asked this question in an online quiz.

Answer»

Correct option is (a) searched node is swapped with its predecessor

Easy explanation - In Transpose METHOD, if any node is searched, it is swapped with the node in front unless it is the HEAD of the LIST. So, in Transpose method searched node is swapped with its predecessor.



Discussion

No Comment Found

Related InterviewSolutions