Unfortunately I was not able to find the numbers of corresponding problems in leetcode database so please update this thread if you can find them
array1: ["cat", "bat", "dog"]
array2: ['c', 'x', 'b', 'd']
output: TRUEarray1: ["xy", "xa", "x"]
array2: ['y', 'a', 'x']
output: FALSEk return the number of occurences of k in the array (or -1 if the value does not exist in the array)array: [1, 2, 3, 3, 8]
k: 3
output: 2array: [1, 2, 3, 3, 8]
k: 4
output: -1abbbc → ac
abbbbc → abc
abbc → abbc