You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ABC international is checking the company names of its client for palindrome. A string is said to be palindrome if both the input string and the reversed output string are one and the same. So ABC international needs to reverse the names of the companies they have. Write a program to reverse a string using stack implementation. Remember as stack uses LIFO concept the string pushed can be popped out in a reverse order.
2
+
3
+
// Constraint: String can be of size 10.
4
+
5
+
// Input: Input string S
6
+
7
+
// Output: Reverse of a string given as input or overflow if string is above size 10.
0 commit comments