human
Find if it is possible to make a binary string which contanins given number of "0" , "1" , "01" and "10" as sub sequences | Function that returns true if it is possible to make a binary string consisting of l 0 ' s , ▁ m ▁ 1' s , x "01" sub - sequences and y "10" sub - sequences.
Driver code"
Solution in Python:
assistant
#Here is code to find if it is possible to make a binary string which contanins given number of "0" , "1" , "01" and "10" as sub sequences and the other steps required.
 def isPossible ( l , m , x , y ) :
	if ( l * m == x + y ) :
		return True ;
	return False ;
if __name__ == " _ _ main _ _ " :
	l = 3 ; m = 2 ; x = 4 ; y = 2 ;
	if ( isPossible ( l , m , x , y ) ) :
		print ( " Yes " ) ;
	else :
		print ( " No " ) ;