List after removing the maximum element
List < Integer > w = new ArrayList < > ( Collections . nCopies ( n , 0 ) ) ; Collections . copy ( w , v ) ; w . remove ( pos_high ) ; return Math . max ( ans , proc ( w ) ) ; }