Question: You are reading a string that looks exactly the same from forward as it looks from backward (e.g. MADAM). Lets name the string as XYZ.
You are reading a string that looks exactly the same from forward as it looks from backward (e.g. MADAM). Lets name the string as XYZ. If I provide you with another string, you have to tell whether a provided string is XYZ or not under a few conditions i.e. the total stacks and queues that you can use are fixed. One character is read at a time. write the code in C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
