mirror of
				https://github.com/krahets/hello-algo.git
				synced 2025-11-04 14:18:20 +08:00 
			
		
		
		
	Fixed wrong parameter of Hash Map Set
This commit is contained in:
		@ -646,7 +646,7 @@ $$
 | 
				
			|||||||
        /* 添加操作 */
 | 
					        /* 添加操作 */
 | 
				
			||||||
        public set(key: number, val: string) {
 | 
					        public set(key: number, val: string) {
 | 
				
			||||||
            let index = this.hashFunc(key);
 | 
					            let index = this.hashFunc(key);
 | 
				
			||||||
            this.bucket[index] = new Entry(index, val);
 | 
					            this.bucket[index] = new Entry(key, val);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
        /* 删除操作 */
 | 
					        /* 删除操作 */
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user