Searching in singly linked listSearching 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. Algorithm
WRITE "EMPTY LIST" write i+1 [END OF LOOP] C functionOutput 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 Next Topic# |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India