* A recursive function to update the nodes which * have the given 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 .
static void updateValue ( int arr [ ] , int [ ] st , int ss , int se , int index , int value , int node ) { if ( index < ss index > se ) { System . out . println ( " Invalid ▁ Input " ) ; return ; } if ( ss == se ) {