IBM interview question

It was a range query question. The task was to update an array range by a multiplier and return the updated array.

Interview Answer

Anonymous

22 Jul 2024

I converted a difference array to a multiplier array to solve in O(N) time.