Skip to content

Bug Report for python-sorted-dict-basics #6151

Description

@Brian-Soh

Bug Report for https://neetcode.io/problems/python-sorted-dict-basics

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

The SortedDict lesson incorrectly states that key access and lookup are O(log n). In sortedcontainers.SortedDict, these operations use an underlying Python dict, so sorted_dict[key] and key in sorted_dict are O(1) average.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions