human
Write me a code to find substrings that contain all vowels and the other steps required given the following:
Find substrings that contain all vowels | Returns true if x is vowel ..
Function to check whether a character is vowel or not.
Function to FindSubstrings of string.
hash = set ( ).
To store vowels.
If current character is vowel then insert into hash.
If all vowels are present in current substring.
Driver Code"
Solution in Python:
assistant
#Here is code to find substrings that contain all vowels and the other steps required.
 def isVowel ( x ) :
	return ( x == ' a ' or x == ' e ' or x == ' i ' or x == ' o ' or x == ' u ' ) ;
def FindSubstring ( str ) :
	start = 0 ;
	for i in range ( len ( str ) ) :
		if ( isVowel ( str [ i ] ) == True ) :
			hash . add ( str [ i ] ) ;
			if ( len ( hash ) == 5 ) :
				print ( str [ start : i + 1 ] , end = " ▁ " ) ;
		else :
			start = i + 1 ;
			hash . clear ( ) ;
str = " aeoibsddaeiouudb " ;
FindSubstring ( str ) ;