mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-28 03:48:38 +00:00
Merge branch 'stack-track-min-max' of https://github.com/AnupamBahl/PythonAlgorithms into stack-track-min-max
This commit is contained in:
commit
5f31db7884
@ -13,8 +13,9 @@ class StackData:
|
|||||||
Object stored on the stack
|
Object stored on the stack
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, current_value: float, min_value: float
|
def __init__(
|
||||||
, max_value: float) -> None:
|
self, current_value: float, min_value: float, max_value: float
|
||||||
|
) -> None:
|
||||||
self.current_value = current_value
|
self.current_value = current_value
|
||||||
self.min_value = min_value
|
self.min_value = min_value
|
||||||
self.max_value = max_value
|
self.max_value = max_value
|
||||||
@ -161,5 +162,5 @@ class MinMaxStack:
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from doctest import testmod
|
from doctest import testmod
|
||||||
testmod()
|
|
||||||
|
|
||||||
|
testmod()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user