Searching in singly linked list
Searching is performed in order to find the location of a particular element in the list. Searching any element in the list needs traversing through the list and make the comparison of every element of the list with the specified element. If the element is matched with any of the list element then the location of the element is returned from the function.
WRITE "EMPTY LIST"
[END OF LOOP]
1.Create 2.Search 3.Exit 4.Enter your choice?1 Enter the item 23 Node inserted 1.Create 2.Search 3.Exit 4.Enter your choice?1 Enter the item 34 Node inserted 1.Create 2.Search 3.Exit 4.Enter your choice?2 Enter item which you want to search? 34 item found at location 1
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week