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
import java.util.*; | |
public class MyHashMap<K, V> implements Map<K, V>{ | |
private static class Pair<K, V> implements Map.Entry<K, V> { | |
private final K key; | |
private V value; | |
public Pair(K key, V value) { | |
this.key = key; | |
this.value = value; |
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
import java.lang.reflect.Array; | |
import java.util.*; | |
public class LinkedListSent<E> implements List<E>, Deque<E>, Iterable<E> { | |
private static class Node<E> { | |
private E data; | |
private Node<E> next; | |
private Node<E> previous; | |
public Node(E data, Node<E> next, Node<E> previous) { |