Skip to content

Commit 52fa1d8

Browse files
Update max_min.py
1 parent 2f42685 commit 52fa1d8

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

divide_and_conquer/max_min.py

+16-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,22 @@ class Pair:
1313
Structure to store both maximum and minimum elements
1414
"""
1515

16-
def __init__(self):
16+
def __init__(self) -> None:
17+
"""
18+
Initializes the Pair object with maximum and minimum elements
19+
20+
Args:
21+
None
22+
23+
Returns:
24+
None
25+
26+
>>> pair = Pair()
27+
>>> pair.max
28+
0
29+
>>> pair.min
30+
0
31+
"""
1732
self.max = 0
1833
self.min = 0
1934

0 commit comments

Comments
 (0)