Python data engineering interview problem. Difficulty: beginner. Pattern: Aggregation. About 10 minutes. Part of the Pro drill bank.
Growth tracks daily new signups. Finance wants a running total so day 3's number is signups from day 1 through day 3, not that day alone.
Turn a list of daily signup counts into a prefix (running) sum.
Input: running_sum([1, 2, 3]) Output: [1, 3, 6] This input follows the stated rules and produces this output.
Topics: lakebench, python, iteration.
More Python interview questions · All interview problems · Learn data engineering
Interview-style drill: Given a list of daily signup counts, return the running cumulative total.
Turn a list of daily signup counts into a prefix (running) sum.