Question
Please help fix the CompletedTwoProbeChainHT.java TODO's CompletedTwoProbeChainHT.java import java.util.LinkedList; import java.util.Queue; public class CompletedTwoProbeChainHT implements TwoProbeChainHT { //any constructors must be made public @Override public
Please help fix the CompletedTwoProbeChainHT.java TODO's
CompletedTwoProbeChainHT.java
import java.util.LinkedList; import java.util.Queue;
public class CompletedTwoProbeChainHT
//any constructors must be made public
@Override public int hash(Key key) { //TODO return 0; }
@Override public int hash2(Key key) { //TODO return 0; }
@Override public void put(Key key, Value val) { //TODO }
@Override public Value get(Key key) { //TODO return null; }
@Override public void delete(Key key) { //TODO }
@Override public boolean contains(Key key) { //TODO return false; }
@Override public boolean isEmpty() { //TODO return false; }
@Override public int size() { //TODO return 0; }
@Override public Iterable
//////////////////////////////////////////////////////////////////////////////////////////////// // THESE METHODS ARE ONLY FOR GRADING AND COME FROM THE TWOPROBECHAINHT INTERFACE.
@Override public int getM() { //TODO. We suggest something like: //return M;
return 0; }
@Override public int getChainSize(int i) { //TODO. We suggest something like: //return entries[i].size();
return 0; } }
TwoProbeChainHT.java
public interface TwoProbeChainHT
CODE OUTPUT