#
# 寻找最后的山峰
# @param a int整型一维数组
# @return int整型
#
class Solution:
def solve(self , a ):
# write code here
package main
/**
* 寻找最后的山峰
* @param a int整型一维数组
* @return int整型
*/
func solve( a []int ) int {
// write code here
}
/**
* 寻找最后的山峰
* @param a int整型一维数组
* @param aLen int a数组长度
* @return int整型
*/
int solve(int* a, int aLen ) {
// write code here
}
#
# 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
# 寻找最后的山峰
# @param a int整型一维数组
# @return int整型
#
class Solution
def solve(a)
# write code here
end
end
object Solution {
/**
* 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
* 寻找最后的山峰
* @param a int整型一维数组
* @return int整型
*/
def solve(a: Array[Int]): Int = {
// write code here
}
}
object Solution {
/**
* 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
* 寻找最后的山峰
* @param a int整型一维数组
* @return int整型
*/
fun solve(a: IntArray): Int {
// write code here
}
}
import java.util.*;
public class Solution {
/**
* 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
* 寻找最后的山峰
* @param a int整型一维数组
* @return int整型
*/
public int solve (int[] a) {
// write code here
}
}
/**
* 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
* 寻找最后的山峰
* @param a int整型一维数组
* @return int整型
*/
export function solve(a: number[]): number {
// write code here
}
public class Solution {
/**
* 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
* 寻找最后的山峰
* @param a int整型一维数组
* @return int整型
*/
func solve ( _ a: [Int]) -> Int {
// write code here
}
}
struct Solution{
}
impl Solution {
fn new() -> Self {
Solution{}
}
/**
* 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
* 寻找最后的山峰
* @param a int整型一维数组
* @return int整型
*/
pub fn solve(&self, a: Vec) -> i32 {
// write code here
}
}
[2,4,1,2,7,8,4]
5