known interview questions with solutions
- Implement a basic Stack.
Requirements:
- The stack will accept only int numbers.
- The stack should created with capacity > 0.
- The stack should not exceed its own capacity.
- No need to consider complexity at this time.
- Write tests to verify the functionality of the Stack.
Try to refer to both positive and negative scenarios. Aim to achieve 100% coverage.
-
Add function get_minimum_fast() to Stack class.
-
Run the tests you've wrote for get_minimum_fast() and make sure they all pass.