ıWorkspaceProblems
Your statement, your cases, your own little challenge.
{
"title": "Sum the readings",
"difficulty": "easy",
"descriptionMd": "Return the sum of an integer array.",
"functionName": "solve",
"starterCode": {
"javascript": "function solve(nums) {\n // Your solution\n}\n",
"typescript": "function solve(nums: number[]): number {\n return 0;\n}\n",
"python": "def solve(nums):\n pass\n",
"java": "class Solution {\n public int solve(int[] nums) {\n return 0;\n }\n}\n"
},
"cases": [
{
"input": [
[
1,
2,
3
]
],
"expected": 6
}
],
"privateData": {
"hiddenCases": [
{
"input": [
[]
],
"expected": 0
}
],
"editorialMd": ""
}
}