我已经通过了一个亲切的测试,它要求我编写一个函数来找出重复元素之间的最大差异。例如,如果我有一个N元素数组,AI=K,其中K<=NA[1]=6A[3]=2A[5]=6以下是重复元素之间的最大差异为4(5-1=4),因为A[1]=A[5] the difference =5-1=4A[3]=A[6] the difference =6-3=3
最大值为
Wawrinka</title>
<description>Defending champion Roger Federer cruises past Stanislas Wawrinka 6-1 6-3 6-3 to take his place in the Australian Open semi-finals.