Closed simerplaha closed 3 years ago
All key-value IDs are sequentially numbered Ints so a HashMap is unnecessary. Switch to using an Array (O(1)).
Int
HashMap
Array
All key-value IDs are sequentially numbered
Int
s so aHashMap
is unnecessary. Switch to using anArray
(O(1)).