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 .
function updateValue ( arr , st , ss , se , index , value , node ) { if ( index < ss index > se ) { document . write ( " " + " " ) ; return ; } if ( ss == se ) {