parameters: (self, arr)
return_statement: return result
docstring: :type arr: List[int]
          :rtype: int
docstring_summary: :type arr: List[int]
          :rtype: int
docstring_tokens: : type arr : List [ int ] : rtype : int
function: def maximumElementAfterDecrementingAndRearranging(self, arr):
          """
          :type arr: List[int]
          :rtype: int
          """
          arr.sort()
          result = 1
          for i in xrange(1, len(arr)):
              result = min(result+1, arr[i])
          return result
function_tokens: def maximumElementAfterDecrementingAndRearranging ( self , arr ) : arr . sort ( ) result = 1 for i in xrange ( 1 , len ( arr ) ) : result = min ( result + 1 , arr [ i ] ) return result