-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.json
More file actions
46 lines (38 loc) · 1.08 KB
/
tasks.json
File metadata and controls
46 lines (38 loc) · 1.08 KB
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
[
{
"id": 1,
"difficulty": "easy",
"description": "Return indices of two numbers such that they add up to target",
"public_tests": [
{ "input": [[2, 7, 11, 15], 9], "output": [0, 1] }
],
"hidden_tests": [
{ "input": [[3, 2, 4], 6], "output": [1, 2] },
{ "input": [[1, 5, 3], 8], "output": [1, 2] }
]
},
{
"id": 2,
"difficulty": "medium",
"description": "Check if the given parentheses string is valid. Return true or false.",
"public_tests": [
{ "input": ["()[]{}"], "output": true }
],
"hidden_tests": [
{ "input": ["(]"], "output": false },
{ "input": ["({[]})"], "output": true }
]
},
{
"id": 3,
"difficulty": "hard",
"description": "Given an array of integers, return the length of the longest consecutive sequence.",
"public_tests": [
{ "input": [[100, 4, 200, 1, 3, 2]], "output": 4 }
],
"hidden_tests": [
{ "input": [[0,3,7,2,5,8,4,6,0,1]], "output": 9 },
{ "input": [[1,2,0,1]], "output": 3 }
]
}
]