You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
3.6: explaining maps with data structures terminology #190
This part explains dictionaries using terminology from a data structures course.
Coming from Python directly, I did not understand the parts that mentioned TreeMaps and HashMaps. A small explanation or a reference to an article explaining the difference would add to this section.
a few lines like:
HashMap does not maintain any order neither based on key nor on basis of value, If we want the keys to be maintained in a sorted order, we need to use TreeMap.
TreeMap always keeps the elements in a sorted(increasing) order, while the elements in a HashMap have no order.
Just to elaborate on the difference: give a refresher to those who know it and a simple explanation for those who don't.
Activity
habibasorour commentedon Jul 23, 2026
a few lines like:
HashMap does not maintain any order neither based on key nor on basis of value, If we want the keys to be maintained in a sorted order, we need to use TreeMap.
TreeMap always keeps the elements in a sorted(increasing) order, while the elements in a HashMap have no order.
Just to elaborate on the difference: give a refresher to those who know it and a simple explanation for those who don't.
taken from: https://www.geeksforgeeks.org/java/hashmap-treemap-java/