Question bank › Prefix Sum
Dsa Prefix Sum Warm-up

Game Score Tracker

A gaming system tracks daily scores achieved by a player over a week. You need to compute the total score by the end of each day. Input: - A single line containing 7 integers representing daily scores. Output: - A single line containing 7 integers, where each integer represents the total score by the end of that day. Example: Input: 10 20 -5 30 -10 0 15 Output: 10 30 25 55 45 45 60

Key concepts

prefix_sumarray_processing

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.