Skip to content

GabrielFreyJava60/StackQueueNumberBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HW #25 Definition

Write class MyStackInt with the following methods

  • push(num: int) adds number at top of the stack
  • pop()->int removes number from the top of stack with returning the number. Raises IndexError for empty stack
  • max()->int retuns maximal number in the stack. Raises IndexError for empty stack

Note all the above mathods should have complexity O[1]

Write tests for class MyStackInt

Files

  • MyStackInt.py - implementation of MyStackInt class
  • test_MyStackInt.py - tests for MyStackInt class
  • demo.py - demonstration script for MyStackInt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages