#include <vector>
using namespace std;
class Solution {
public:
int solve(vector<int> nums, int k) {
// Write your logic here
return 0;
}
};
SKILL
POSTERIOR
NAMES
Sum of first K elements
1
PROBLEM TYPE
Technical
PROBLEM SUBTYPE
Computational
C++ STRUCTURE
PYTHON STRUCTURE
class Solution:
def solve(self, nums, k):
# Write your logic here
return 0
TEST CASES
Input
nums = [2, 7, 11, 15], k = 2
Output
9
VERSION NO
5
CREATED AT
UPDATED AT
PRIOR
SOLUTION
1
Prefix sum of first K