human
Number of pairs with Pandigital Concatenation | Checks if a given is Pandigital.
digit i is not present thus not pandigital.
Returns number of pairs of strings resulting in Pandigital Concatenations.
iterate over all pair of strings.
Driver code"
Solution in Python:
assistant
#Here is code to number of pairs with Pandigital Concatenation and the other steps required.
 def isPanDigital ( s ) :
	digits = [ False ] * 10 ;
	for i in range ( 0 , len ( s ) ) :
		digits [ int ( s [ i ] ) - int ( '0' ) ] = True
	for i in range ( 0 , 10 ) :
		if ( digits [ i ] == False ) :
			return False
	return True
def countPandigitalPairs ( v ) :
	pairs = 0
	for i in range ( 0 , len ( v ) ) :
		for j in range ( i + 1 , len ( v ) ) :
			if ( isPanDigital ( v [ i ] + v [ j ] ) ) :
				pairs = pairs + 1
	return pairs
v = [ "123567" , "098234" , "14765" , "19804" ]
print ( countPandigitalPairs ( v ) )