Gildong interesting machine array n integer the machine support kind operation increase element suffix array 1 Decrease element suffix array 1 a suffix subsegment contiguous element array contain a_n in word a_i include subsegment a_js lt j le n include subsegmentGildong want element equal minimum number operation necessary to life easy Gildong start machine option change integer array integer you allow leave array unchanged you want minimize number operation Gildong perform with help minimum number operation Gildong performnote change integer array count operation Gildong perform