Problem Statement:You are given an array: arr = {10, 20, 30, 40, 50}; And the following queries: Add 5 to every element in the interval [1, 3] Add 10 to every element in the interval [2, 4] What should the final array look like after all these ...
Markdown supported · ⌘↵ to post
No responses yet.