Back

remove characters from s1 which are present in the s2?

Created 2 years ago
256 Views
3 Comments
SakthivelHmOLkh
@SakthivelHmOLkh
SakthivelHmOLkh
@SakthivelHmOLkhProfile is locked. Login

Given a string two strings S1 and S2, remove characters from the S1 which are present in the S2.If S1 becomes empty then print -1
Input Size : N <= 100000
Sample Testcase :
INPUT
GUVI GEEK
OUTPUT
UVI

Comments (3)
Please login to comment.