Question: in c++ please: Write a function bool isSame( string s1, string s2) That calls itself recursively to determine if string s1 is the same as
in c++ please:
Write a function
bool isSame(string s1, string s2)
That calls itself recursively to determine if string s1 is the same as s2. It compares them one character at a time
starting from the left most character (position 0). Make sure to write the exit case(s) and small case.
Demonstrate in your output that it works for strings that
1. are the same
2. are not the same.
3. of length 0
4. of length 1
5. of unequal lengths
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
