Pranay Arora has Published 1 Articles

Java program to find the maximum and minimum elements in a stack

Pranay Arora

Pranay Arora

Updated on 18-Aug-2024 00:20:08

403 Views

Stacks are basic data structures that follow the Last in First Out principle also termed as LIFO. A stack has many use cases like organizing function calls and undoing actions. Often one might encounter a problem locating the biggest and smallest elements inside a stack, this article will demonstrate multiple ... Read More

1
Advertisements