Created
May 2, 2020 13:17
-
-
Save Mahdhir/4c7e6da9fa99d26e9f523f9ea076f578 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node search(int key){ | |
Node temp = head; | |
while(temp != null){ | |
if(temp.key == key){ | |
return temp; | |
} | |
temp = temp.next; | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment