Available question text
Given nums and queries where each query adds a value to nums[index], return the sum of even numbers after each update. The challenge is to maintain and update a running sum of even elements efficiently (O(1) per query) by handling parity changes instead of recomputing the whole sum.
Related questions
Continue with questions that share topics or the same question type.
- Handling Sum Queries After Update
Coding
- Sum of Matrix After Queries
Coding · Array · Hash Table
- Average Value of Even Numbers That Are Divisible by Three
Coding
- Bitwise OR of Even Numbers in an Array
Coding
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 985. Sum of Even Numbers After Queries
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source