面试算法题: 求数组中的第二最大数
如题:
/**
* 求数组中的第二最大数
* @author gaozhy
* @describe
* @date 2020/9/11 5:23 下午
*/
public class SecondMaxNumber {
public static void main(String[] args) {
int[] arr = new int[]{10, 1, 5, 14, 3, 0, 13, 18, 9,15,20};
int firstMax = Integ
原创
2020-09-11 18:09:05 ·
269 阅读 ·
0 评论