top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How do you search for a target key in a linked list?

+3 votes
835 views
How do you search for a target key in a linked list?
posted Mar 27, 2015 by Jalal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

To find the target key in a linked list

You have to apply sequential search. Each node is traversed and compared with the target key, and if it is different, then it follows the link to the next node. This traversal continues until either the target key is found or if the last node is reached

answer Mar 30, 2015 by Mohammed Hussain
...