Hello all,
I have two string arrays as follows:
string array1[] = { "once", "in", "a", "lifetime", "chance", "success" };
string array2[] = { "success", "is", "the", "only", "option" };
I want to have a function that will take the two arrays and return the number of times a word appears in both arrays. I also want to have a function that takes in both arrays and returns the max number of characters for any word in both arrays.
Thanks for any help

Salman BegRank #284 · 8.8K reputationPosted Feb 12, 2019, 5:11 PM EST
Vivek KumarRank #272 · 9.3K reputationPosted Feb 13, 2019, 8:12 AM EST
Sagar MaldeRank #2,097 · 684 reputationPosted Jun 3, 2019, 11:53 PM EDT
Sanjit Kumar SinghRank #1,366 · 1.2K reputationPosted Feb 17, 2019, 7:49 PM EST