Write code to output the no. of times each number appears in two unsorted arrays
Given two strings of unsorted integers write code to output the no. of times each number appears in both arrays. In the sample below number 2 appears 3 times Sample Arrays:
array #1 [2,21,4,56,12,10,8,2,12,10,21]
aray #2 [12,8,2,10,56,12,8,8,12,4,12]
Write code to output the no. of times each number appears in two unsorted arrays
Sample Arrays:
array #1 [2,21,4,56,12,10,8,2,12,10,21]
aray #2 [12,8,2,10,56,12,8,8,12,4,12]