Available question text
Given an ordered sequence of records with gender and amount, produce for each row the running total of amounts for that row’s gender up to that point. This requires scanning once while maintaining separate accumulators (or computing partitioned prefix sums) to handle interleaved genders efficiently.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1308. Running Total for Different Genders
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source