ADVERTISEMENT
Google AdSense Slot (headerLeaderboard)
Set your Publisher ID in src/config/ads.ts to display live ads.
Introduction to Computer Programming• 6 min read
Arrays, Lists & Key-Value Dictionaries
Organize data using zero-indexed arrays for sequential collections and Hash Maps / Dictionaries for O(1) key-value lookups.
Sequential Arrays vs. Key-Value Maps
Arrays (Lists): Ordered, zero-indexed collections accessed by integer position (
arr[0]).Dictionaries (Objects / Hash Maps): Key-value stores accessed by unique descriptive string keys (
user["email"]).ADVERTISEMENT
Google AdSense Slot (inContentBanner)
Set your Publisher ID in src/config/ads.ts to display live ads.
Test Yourself With Exercise
What is the index of the first item in a standard zero-indexed programming array?