This file contains hidden or 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
    
  
  
    
  | class MyHashTable: | |
| def __init__(self): | |
| self.size = 11 | |
| self.positions = [None] * self.size | |
| self.values = [None] * self.size | |
| def put(self,key,value): | |
| hashvalue = self.hashfn(key,len(self.positions)) | |
| if self.positions[hashvalue] == None: | 
  
    
      This file contains hidden or 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
    
  
  
    
  | from random import randint, seed | |
| class Node: | |
| def __init__(self, height = 0, elem = None): | |
| self.elem = elem | |
| self.next = [None]*height | |
| class SkipList: | |
| def __init__(self): |