Question: C++ 2. Given two input stream inputA and inputB, which should have backspace. If the final result of the two input streams is equal, output
C++
2. Given two input stream inputA and inputB, which should have backspace. If the final result of the two input streams is equal, output YES, otherwise output NO. Example: . inputA "abcdess", inputB "abcdces", return "YES" . Explanation: The final result of inputA and inputB is "abc", so return "YES" . inputA="a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
