in reply to Re: counting instances of one array in another array
in thread counting instances of one array in another array

> If you need to know the position of a permutation then you can calculate it. The position of ABC = (1,2,3) = 1 + 2*26^2 + 3*26^3, good enuf.

well this doesn't efficiently encode permutations, but could be sufficient for the OP.

(until he understands hashes)

Cheers Rolf

  • Comment on Re^2: counting instances of one array in another array