Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 3 : 3 / 3

Advertisement

Detailed Solution

सही उत्तर 3 / 3 है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

Reversing a singly linked list iteratively requires a minimum of how many pointers / एकल लिंक्ड सूची को पुनरावृत्तीय रूप से उलटने के लिए न्यूनतम कितने पॉइंटरों की आवश्यकता होती है

1.
1 / 1
2.
2 / 2
3.
3 / 3
4.
4 / 4

Correct Answer: 3 / 3

The standard reversal keeps track of the previous node, the current node and the next node so that no link is lost while redirecting pointers. / मानक उत्क्रमण में पिछले नोड, वर्तमान नोड और अगले नोड का हिसाब रखा जाता है ताकि पॉइंटर पुनर्निर्देशित करते समय कोई लिंक नष्ट न हो।

Downloaded from PrepSnap (prepsnap.in)