All Questions
3 questions
5
votes
1
answer
109
views
An alternative algorithm for sorting a stack using only one additional stack
From "Cracking the Coding Interview":
Write a program to sort a stack in ascending order (with biggest items on top). You may use at most one additional stack to hold items, but you may not copy ...
3
votes
0
answers
914
views
Find redundant braces in an input string
I am solving interview questions from here.
Problem : Write a program to validate if the input string has redundant braces
Return 0/1 :
...
2
votes
1
answer
688
views
Stack using linked List
I have this problem with my interview. I was asked to implement a stack using a linked list.
Gist
...