TRAINING CATEGORIES
TRAINING PROGRAMS
Difficulty Level: MEDIUM
Problem Statement:
You are given a stack of integers, you need to sort it in descending order using another temporary stack.
Input:
[34, 3, 31, 98, 92, 23]
Output:
Sorted numbers are: 91 74 52 43 10 6
Sorted numbers are:
91 74 52 43 10 6
We use cookies to make interactions with our websites and services easy and meaningful. Please read our Privacy Policy for more details.