text: A recursive function to update the nodes which have the given the index in their range . The following are parameters st , ss and se are same as defined above index . index of the element to be updated .
code: static void updateValue ( int [ ] arr , int [ ] st , int ss , int se , int index , int value , int node ) { if ( index < ss index > se ) { Console . Write ( " Invalid ▁ Input " + " STRNEWLINE " ) ; return ; } if ( ss == se ) {