Question: Please CREATE and COMMENT the code in python. Please do your won. Dont copy and paste from chegg or other sites. Thank you You are
You are given an array of string and an array of patterns. Your task is to check that for every i and j, the strings and patterns should be the same i.e. stringsli stringslil and patterns[il patternsli Write a function to return True or False 3. Example: strings- ["Python", "Programming", "Programming" ] and patterns ("x", "y", "y"] Solution: True strings "Python" "Programing", "Class", "Programming"] and patterns ["", "y", Solution: False Explanation: In 1st example, strings[ 2]-strings[3] and patterns [2]-patterns[3]True In 2nd example, strings[2]strings[3] strings[4] and patterns[2-patterns[3] patterns[4] False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
