Logic behind implementing a Sorted Stack without using any other datastructure..
        Posted  
        
            by RBA
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by RBA
        
        
        
        Published on 2010-05-11T02:50:53Z
        Indexed on 
            2010/05/11
            2:54 UTC
        
        
        Read the original article
        Hit count: 499
        
What could be the logic involved in Sorting a stack in increasing order Without using the any other data-Structure.
I feel it could be done, using Recursion. But the question is how? Can Anybody please share the logic/algorithm for the same.
Thanks.
© Stack Overflow or respective owner