给定一个数组a,查找数组中的最大值
def findMaximum(a, n): result = a[0] i = 1 while i < n: if a[i] > result: result = a[i] i += 1 return result
给定一个数组a,查找数组中的最大值
def findMaximum(a, n): result = a[0] i = 1 while i < n: if a[i] > result: result = a[i] i += 1 return result