Skip to content

Commit cee48d2

Browse files
Update other/coordinate_compression.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent 1b32773 commit cee48d2

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

other/coordinate_compression.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,13 @@ def __init__(self, arr: list[int | float | str]) -> None:
4848
1
4949
>>> cc.decompress(1)
5050
52
51-
5251
"""
5352

54-
self.coordinate_map: dict[
55-
int | float | str, int
56-
] = {} # A dictionary to store compressed coordinates
53+
# A dictionary to store compressed coordinates
54+
self.coordinate_map: dict[int | float | str, int] = {}
5755

58-
self.reverse_map: list[int | float | str] = [-1] * (
59-
len(arr)
60-
) # A list to store reverse mapping
56+
# A list to store reverse mapping
57+
self.reverse_map: list[int | float | str] = [-1] * len(arr)
6158

6259
self.arr = sorted(arr) # The input list
6360
self.n = len(arr) # The length of the input list

0 commit comments

Comments
 (0)