Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 985. Sum of Even Numbers After Queries
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.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.