/** value will always be non-negative. */
value will always be non-negative.
value will always be non - negative .
pub fn put(&mut self, key: i32, val: i32) {
        let idx = (key % 1000) as usize;
        if self.map[idx].is_none() {
            self.map[idx] = Some(MyLinkedList::new());
        }
        self.map[idx].as_mut().unwrap().push(key, val);
    }
pub fn put ( & mut self , key : i32 , val : i32 ) { let idx = ( key % 1000 ) as usize ; if self . map [ idx ] . is_none ( ) { self . map [ idx ] = Some ( MyLinkedList :: new ( ) ) ; } self . map [ idx ] . as_mut ( ) . unwrap ( ) . push ( key , val ) ; }
value will always be non-negative.
value will always be non - negative .
&mut self
key
i32
val
i32