Given two strings S1 and S2 . You have to concatenate both the strings and print the concatenated string.
S1 = "Geeksfor"
S2 = "Geeks"
Explanation: Combined "Geeksfor" and "Geeks"
S1 = "Practice"
S2 = "Hard"
Explanation: Combined "Practice" and "Hard"
You dont need to read input or print anything. Complete the function conCat() which accepts two strings S1 and S2 as input parameter and returns concatenated string.
Expected Time Complexity: O(|S1| + |S2|) .
Expected Auxiliary Space: O(|S1| + |S2|) .
where N is the length of a String
1 <= |S1| , |S2| <= 105
|S| denotes the length of the string S.
We strongly recommend solving this problem on your own before viewing its editorial. Do you still
want to view the editorial?
Login to access your submissions.