From 52fa1d8b749c08b6b8cc044dea75d946213f700e Mon Sep 17 00:00:00 2001 From: Dhruv Kumar <71509305+Futurist-Forever@users.noreply.github.com> Date: Sat, 5 Oct 2024 20:59:02 +0530 Subject: [PATCH] Update max_min.py --- divide_and_conquer/max_min.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/divide_and_conquer/max_min.py b/divide_and_conquer/max_min.py index b929c2e90..13828c8b3 100644 --- a/divide_and_conquer/max_min.py +++ b/divide_and_conquer/max_min.py @@ -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