
-----------------------------------
deltatux
Tue Dec 02, 2008 9:50 pm

Parallel Array Matching
-----------------------------------
Hey guys,

Recently I had my test, but this question completely stumped me. I was wondering how you guys would approach this question:

So basically I get two parallel arrays as such:

userid_t[] 1001, 1002, 1003, 1001, 1001, 1002, 1004, 1005
itemcode_t[] A , A , B , B , C , A , B , F

So basically, I have to go through the parallel arrays and see the frequency of them having two distinct users selecting the item code.

So in that question, the array:

itemcodes[] A, B, C, F 