Skip to content

3.6: explaining maps with data structures terminology #190

Open

Description

@habibasorour

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.

Image

Activity

  1. habibasorour commented on Jul 23, 2026

    @habibasorour
    ContributorAuthor

    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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions