generated from filipe1309/shubcogen-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcases.ts
58 lines (58 loc) · 909 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
47
48
49
50
51
52
53
54
55
56
57
58
export default [
{
input: [ 2 ],
expected: 2
},
{
input: [ 1, 2, 1 ],
expected: 1
},
{
input: [ 3, 3, 1 ],
expected: 3
},
{
input: [ 4, 5, 5 ],
expected: 5
},
{
input: [ 1, 2, 3, 2, 2, 1, 2 ],
expected: 2
},
{
input: [ 1, 2, 3, 2, 3, 2, 2, 4, 2 ],
expected: 2
},
{
input: [ 1, 1, 1, 1, 1, 1, 1 ],
expected: 1
},
{
input: [ 5, 4, 3, 2, 1, 1, 1, 1, 1 ],
expected: 1
},
{
input: [ 1, 1, 1, 1, 1, 5, 4, 3, 2 ],
expected: 1
},
{
input: [ 1, 1, 1, 1, 2, 2, 2, 2, 2 ],
expected: 2
},
{
input: [ 435, 6543, 6543, 435, 535, 6543, 6543, 12, 43, 6543, 6543 ],
expected: 6543
},
{
input: [ 1, 2, 2, 2, 1 ],
expected: 2
},
{
input: [ 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1 ],
expected: 4
},
{
input: [ 1, 2, 3, 2, 2, 4, 2, 2, 5, 2, 1 ],
expected: 2
},
];