Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

shubhamcr7's blog

By shubhamcr7, history, 8 years ago, In English

Given an array of n elements. ‘n’ operations needs to be performed on the array. For each operation start_index, end_index,trim_value is given. One has trim the value starting from the start_index to end_index inclusive. If the value at that index is more than or equal to trim value then make it equal to trim_value else leave it as it is. After performing ‘n’ operations find the maximum value of the array.

Full text and comments »

  • Vote: I like it
  • -10
  • Vote: I do not like it