Amazing Strings
Given 3 Strings, check whether the 3rd string contains all the characters of strings 1 and 2 in any order. If all the characters are present, print "YES" otherwise print "NO".
Given 3 Strings, check whether the 3rd string contains all the characters of strings 1 and 2 in any order. If all the characters are present, print "YES" otherwise print "NO".
Line 1 : First String
Line 2 : Second String
Line 3 : Third String
YES or NO
SANTACLAUS
DEDMOROZ
SANTAMOROZDEDCLAUS
YES
PAPAINOEL
JOULUPUKKI
JOULNAPAOILELUPUKKI
NO
BABBONATALE
FATHERCHRISTMAS
BABCHRISTMASBONATALLEFATHER
NO
Comments
Post a Comment
Please give us your valuable feedback