This is from betting domain which has something that is called a long list: a list of a "home team win/draw/away team win" markets for 13 games. A punter can select any combination of the possible outcomes which are encoded in a following way:
1 - home team wins
2 - draw
4 - away team wins
3 - home team wins or draw
5 - home team wins or away team wins
6 - draw or away team wins
7 - home team wins or draw or away team wins
Meaning a [3, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7]
represents a selection where punter put following bets:
- "home team wins or draw" in a first game
- "home team wins" in games 2-12
- "home team wins or draw or away team wins" in 13th game
After games are finished there will be another 13 elements list representing winning outcomes, for example: [4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
means that in a first game away team won and in all other games home team won.
The question is if I'm missing any properties within those numbers that will make finding a winning bets easier than comparing each number one by one? Like in our case case checking if there are bets that has 4
,5
, 6
or 7
for the first game and 1
, 3
, 5
or 7
for rest of them.