It was a range query question. The task was to update an array range by a multiplier and return the updated array.
Anonymous
I converted a difference array to a multiplier array to solve in O(N) time.
Check out your Company Bowl for anonymous work chats.