No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I have two array's Array1[1,3,5,7,4,0,8] Array2[1,5,8,3,4,2,9] What I would like to achieve is an output count = 3( three of the numbers 3,5,8 from Array2 are in Array1 but in the wrong place) using Math.min. Can someone explain this process to me please. Thank you | |
I have 2 arrays that I need to compare against each other and retun the count of the same: ex: array1[abcd] array2 [adce] return would be 2 as both a and c are in same postion. I would then have to return 2,1 as a and c are in the … |