-
Notifications
You must be signed in to change notification settings - Fork 1
/
UseCombination.txt
106 lines (101 loc) · 1.33 KB
/
UseCombination.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
All Items:
(A, B, C, D, E)
All Combinations:
(A, B, C, D, E)
(A, B, C, D)
(A, B, C, E)
(A, B, C)
(A, B, D, E)
(A, B, D)
(A, B, E)
(A, B)
(A, C, D, E)
(A, C, D)
(A, C, E)
(A, C)
(A, D, E)
(A, D)
(A, E)
(A)
(B, C, D, E)
(B, C, D)
(B, C, E)
(B, C)
(B, D, E)
(B, D)
(B, E)
(B)
(C, D, E)
(C, D)
(C, E)
(C)
(D, E)
(D)
(E)
All Pairs:
(A, B)
(A, C)
(A, D)
(A, E)
(B, C)
(B, D)
(B, E)
(C, D)
(C, E)
(D, E)
All Combinations of 3 elements:
(A, B, C)
(A, B, D)
(A, B, E)
(A, C, D)
(A, C, E)
(A, D, E)
(B, C, D)
(B, C, E)
(B, D, E)
(C, D, E)
All Combinations of 3 to 4 elements:
(A, B, C, D)
(A, B, C, E)
(A, B, C)
(A, B, D, E)
(A, B, D)
(A, B, E)
(A, C, D, E)
(A, C, D)
(A, C, E)
(A, D, E)
(B, C, D, E)
(B, C, D)
(B, C, E)
(B, D, E)
(C, D, E)
All Combinations of multiple arrays:
Array1: (A1, A2)
Array2: (B1, B2, B3)
Array3: (C1, C2, C3, C4)
There're 24 patterns:
1: (A1, B1, C1)
2: (A1, B1, C2)
3: (A1, B1, C3)
4: (A1, B1, C4)
5: (A1, B2, C1)
6: (A1, B2, C2)
7: (A1, B2, C3)
8: (A1, B2, C4)
9: (A1, B3, C1)
10: (A1, B3, C2)
11: (A1, B3, C3)
12: (A1, B3, C4)
13: (A2, B1, C1)
14: (A2, B1, C2)
15: (A2, B1, C3)
16: (A2, B1, C4)
17: (A2, B2, C1)
18: (A2, B2, C2)
19: (A2, B2, C3)
20: (A2, B2, C4)
21: (A2, B3, C1)
22: (A2, B3, C2)
23: (A2, B3, C3)
24: (A2, B3, C4)