Feedback on Hash Tables
Opened this issue · 0 comments
fchikwekwe commented
Good work on this, Ebonne! Your code is passing all tests.
This is not required, but you might consider going back through this class and adding time/space complexity annotations for the remaining methods. Not only will this be a good review, but it will also help deepen your knowledge of how hash tables work.
If you have Pylint installed you might have noticed that it gets upset when you have unused variables. You can replace unused iterating variables with underscores to improve how your code reads.
Your length method could be refactored to just return self.size
and drastically improve the runtime.