mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-06 17:38:02 +00:00
Polish stack min challenge and solution (#72)
Update constraints, algorithm discussion, code, and tests.
This commit is contained in:
@@ -5,7 +5,7 @@ class TestStackMin(object):
|
||||
|
||||
def test_stack_min(self):
|
||||
print('Test: Push on empty stack, non-empty stack')
|
||||
stack = MyStack()
|
||||
stack = StackMin()
|
||||
stack.push(5)
|
||||
assert_equal(stack.peek(), 5)
|
||||
assert_equal(stack.min(), 5)
|
||||
|
||||
Reference in New Issue
Block a user