Skip to content

Update 2 files

Rishabh Bohra requested to merge stacks_mr into main
  • /stacks/NodeStack.java
  • /stacks/ReverseStack.java

Summary by Bito

This PR introduces two new Java classes: NodeStack and ReverseStack. NodeStack provides a node-based stack implementation with various stack operations such as push, pop, and peek. ReverseStack offers functionality to reverse a stack using recursion, including methods to insert elements at the bottom of the stack. These additions enhance the data structure capabilities of the project.

Code change type: Functionality, Error Handling, Refactoring

Unit tests added: False

Estimated effort to review (1-5, lower is better): 2
Edited by Rishabh Bohra

Merge request reports