Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Sort Stack

Problem from algorithms.tutorialhorizon

Given a stack of integers, write an algorithm to sort the stack using a temporary stack.

Example:

Input : [14, 9, 67, 91, 101, 25]

Output: : [9, 14, 25, 67, 91, 101]