-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscriptgpt.config.json
More file actions
97 lines (97 loc) · 3.14 KB
/
scriptgpt.config.json
File metadata and controls
97 lines (97 loc) · 3.14 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
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
{
"functions": [
{
"name": "unique",
"description": "return all unique values in an array. use lodash library.",
"parameters": [
{
"name": "values",
"type": "number[]"
}
],
"return": "number[]"
},
{
"name": "subtract",
"description": "Subtracts two inetgers together and return values",
"parameters": [
{
"name": "a",
"type": "int"
},
{
"name": "b",
"type": "int"
}
],
"return": "int"
},
{
"name": "multiply",
"description": "Multiplies two inetgers together and return values",
"parameters": [
{
"name": "a",
"type": "int"
},
{
"name": "b",
"type": "int"
}
],
"return": "int"
},
{
"name": "divide",
"description": "Divides two inetgers together and return values",
"parameters": [
{
"name": "a",
"type": "int"
},
{
"name": "b",
"type": "int"
}
],
"return": "int"
},
{
"name": "palindromeNumber",
"description": "Given an integer x, return true if x is a palindrome, and false otherwise.",
"parameters": [
{
"name": "num",
"type": "int"
}
],
"return": "bool"
},
{
"name": "findMatrix",
"description": "You are given an integer array nums. You need to create a 2D array from nums satisfying the following conditions:\nThe 2D array should contain only the elements of the array nums.\nEach row in the 2D array contains distinct integers.\nThe number of rows in the 2D array should be minimal.\n\nReturn the resulting array. If there are multiple answers, return any of them.\nNote that the 2D array can have a different number of elements on each row.",
"parameters": [
{
"name": "nums",
"type": "int[]"
}
],
"return": "int[][]"
},
{
"name": "findMedianSortedArrays",
"description": "Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.\nThe overall run time complexity should be O(log (m+n)).",
"parameters": [
{
"name": "nums1",
"type": "number[]"
},
{
"name": "nums2",
"type": "number[]"
}
],
"return": "number"
}
]
}