kucheasysa

Algoverse_adesh_31

Jun 30th, 2024
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. class Solution:
  2.     def searchKey(self, n, head, key):
  3.         #Code here
  4.          
  5.         while head:
  6.             if head.data == key:
  7.                 return True
  8.                
  9.             head = head.next
  10.        
  11.         return False
  12.         #Code here
  13.  
Advertisement
Add Comment
Please, Sign In to add comment