generated from filipe1309/shubcogen-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
cases.ts
46 lines (46 loc) · 898 Bytes
/
cases.ts
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
export default [
{
input: [ 5, 1, 4, 2 ],
expected: [ 8, 40, 10, 20 ]
},
{
input: [ 1, 8, 6, 2, 4 ],
expected: [ 384, 48, 64, 192, 96 ]
},
{
input: [ -5, 2, -4, 14, -6 ],
expected: [ 672, -1680, 840, -240, 560 ]
},
{
input: [ 9, 3, 2, 1, 9, 5, 3, 2 ],
expected: [ 1620, 4860, 7290, 14580, 1620, 2916, 4860, 7290 ]
},
{
input: [ 4, 4 ],
expected: [ 4, 4 ]
},
{
input: [ 0, 0, 0, 0 ],
expected: [ 0, 0, 0, 0 ]
},
{
input: [ 1, 1, 1, 1 ],
expected: [ 1, 1, 1, 1 ]
},
{
input: [ -1, -1, -1 ],
expected: [ 1, 1, 1 ]
},
{
input: [ -1, -1, -1, -1 ],
expected: [ -1, -1, -1, -1 ]
},
{
input: [ 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
expected: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
},
{
input: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
expected: [ 362880, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
}
];