Marks :100
: 3 | : 0
Given file1 and file2 of type string, you need to print the modification made in file1 to get file2. That if the element is removed from file1 to make file2 you need to append the -ve sign before it, If a new element is added in file1 to make a file, you need to append the +ve sign before it. (Similar to git diff)
The fist line of input contains two strings st1 and str2($$$1 \le str1,str2 \le 10^5$$$) && ($$$ A \le str1[i] \le Z $$$).
For each output print, the modification made separated with space
ABC BCDC
-A B C +D
Example:
File1: ABC
File2:BCD
Output will be : -A B C +D
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.