String reverse using POP and PUSH
Ex.
1.Type a String: james
semaj
2.Type a String: 09167198201
10289176190
Download
Labels
- Assembly: Exf1 ( 01/22/09 ) (1)
- Assembly: Exf2 ( 01/29/09 ) (1)
- Assembly: Prelim Exam (1)
- C/C++ : Linked-List Insertion Functions (1)
- C/C++: Count duplicates and delete key function (Linked-List Insertion ) (1)
- input size (1)
- Java : Linked-List Insertion Functions + Lab excercise 1-10 (1)
- Java: Insertion Sort (1)
- Java: Selection Sort (1)
- Palindrome (1)
- Power Set (1)
- String Reverse using POP and PUSH (1)
- Turbo C: Input seed (1)
Subscribe to:
Post Comments (Atom)
1 comment:
One possible Solutions
a costly procedure.
1. Use a temp stack
2. Insertion into queue
- Push the element into the original stack
3. Deletion from queue
- Pop all the elements from stack into a temp stack
- pop out the first element from the temp stack
- pop all the remaining elements back to the original stack.
protein powder
Post a Comment