The question 3 asks this;
The constructor will take in the parameter n and the class will expose two methods
get(int n)
andput(int n)
The solution used the method signature put(int n, int m)
This is misleading the reader.
The question 3 asks this;
The constructor will take in the parameter n and the class will expose two methods
get(int n)
andput(int n)
The solution used the method signature put(int n, int m)
This is misleading the reader.