Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,13 @@ string.islower() # The islower() method returns True if all cased characters in
string.isdigit()
string.isupper() # The isupper() method returns True if all cased characters in the string are uppercase and there is at least one cased character, False otherwise.
```
The SortedList class from the sortedcontainers module is a data structure in Python that maintains a sorted list of elements while allowing for efficient insertion, deletion, and access operations.

It is implemented using a combination of binary search trees and dynamic arrays, which enables it to achieve efficient time complexities for these operations.

******Insertion and deletion operations in a SortedList have logarithmic time complexity on average O(logn), making it efficient for maintaining a sorted list even with a large number of elements.

![image](https://github.com/Lucas-MW/PythonCheatSheet/assets/57050280/81334010-1469-451f-9da4-2157546b0183)

# Built-in or Library functions

Expand Down