Difficulty: Intermediate
Why store an object as a Hash instead of multiple individual keys?
Hashes are much more memory-efficient due to field-name compression (ZipLists) and keep related data together.
Memory, Data Organization
JavaScript is required for the interactive version of this page, including the code playground and progress tracking. Browse all InternHack tutorials.