in reply to Re: Comparing two arrays
in thread Comparing two arrays
what i need is the total number of matched 1's so in the example above i just need number 1 as a result.@a = 1 0 1 @b = 1 0 0 @c = 1 0 0 # unnecessary as array , just the final count of 1's in arr +ay @c
"
15000int's long means length of an each array?
15000 elements in each array?
"
yes 15000 integer values in any array that i'm dealing with. and yes 15000 (1's or 0's). not 15000 of just 1's not 15000 of just 0's and not #1's + #0's = 15000. 15000 elements over the alphabet of size 2: array(x or y) = {x | x in A} where A={1,0}
|
|---|