之前对题意理解有些偏差,认为找到最大值即可,但其实有的时候选择次大值作为peek才能找到最优解。 我的解法(错误): class Solution {public long maximumSumOfHeights(List<Integer> maxHeights) {int len = maxHeights.size();int peek = 0;List<Integer> p = new A
Give you a prime number p, if you could find some natural number (0 is not inclusive) n and m, satisfy the following expression: We call this p a “Special Prime”. AekdyCoin want you to tell him t