feat: implement custom hash map#1704
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your implementation fully satisfies all HashMap requirements. The core functionality is correctly implemented: the put method properly handles collisions through chaining and updates existing keys, getValue returns the correct value or null, and getSize accurately tracks the entry count. All required features are present including the initial capacity of 16, load factor of 0.75, and automatic resizing. The code follows best practices with magic numbers extracted as constants (DEFAULT_CAPACITY, LOAD_FACTOR, RESIZE_MULTIPLIER), proper use of generics on the Node class, and appropriate access modifiers with private utility methods after public API. The implementation is clean, well-structured, and meets all checklist criteria.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
No description provided.