Update max_min.py

This commit is contained in:
Dhruv Kumar 2024-10-05 20:59:02 +05:30
parent 2f42685328
commit 52fa1d8b74

View File

@ -13,7 +13,22 @@ class Pair:
Structure to store both maximum and minimum elements
"""
def __init__(self):
def __init__(self) -> None:
"""
Initializes the Pair object with maximum and minimum elements
Args:
None
Returns:
None
>>> pair = Pair()
>>> pair.max
0
>>> pair.min
0
"""
self.max = 0
self.min = 0