human
Concatenated string with uncommon characters of two strings | Python3 program Find concatenated string with uncommon characters of given strings.
res = " " result.
store all characters of s2 in map.
Find characters of s1 that are not present in s2 and append to result.
Find characters of s2 that are not present in s1 ..
Driver Code"
Solution in Python:
assistant
#Here is code to concatenated string with uncommon characters of two strings and the other steps required.
 def concatenetedString ( s1 , s2 ) :
	m = { }
	for i in range ( 0 , len ( s2 ) ) :
		m [ s2 [ i ] ] = 1
	for i in range ( 0 , len ( s1 ) ) :
		if ( not s1 [ i ] in m ) :
			res = res + s1 [ i ]
		else :
			m [ s1 [ i ] ] = 2
	for i in range ( 0 , len ( s2 ) ) :
		if ( m [ s2 [ i ] ] == 1 ) :
			res = res + s2 [ i ]
	return res
if __name__ == " _ _ main _ _ " :
	s1 = " abcs "
	s2 = " cxzca "
	print ( concatenetedString ( s1 , s2 ) )