加载中...
public class Solution { public boolean IsContinuous(int [] numbers) { } }
class Solution { public: bool IsContinuous( vector
numbers ) { } };
# -*- coding:utf-8 -*- class Solution: def IsContinuous(self, numbers): # write code here
using System; using System.Collections.Generic; class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param numbers int整型一维数组 * @return bool布尔型 */ public bool IsContinuous (List
numbers) { // write code here } }
function IsContinuous(numbers) { // write code here } module.exports = { IsContinuous : IsContinuous };
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param numbers int整型一维数组 # @return bool布尔型 # class Solution: def IsContinuous(self , numbers: List[int]) -> bool: # write code here
package main /** * * @param numbers int整型一维数组 * @return bool布尔型 */ func IsContinuous( numbers []int ) bool { // write code here }
/** * * @param numbers int整型一维数组 * @param numbersLen int numbers数组长度 * @return bool布尔型 */ bool IsContinuous(int* numbers, int numbersLen ) { // write code here }
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # @param numbers int整型一维数组 # @return bool布尔型 # class Solution def IsContinuous(numbers) # write code here end end
object Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param numbers int整型一维数组 * @return bool布尔型 */ def IsContinuous(numbers: Array[Int]): Boolean = { // write code here } }
object Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param numbers int整型一维数组 * @return bool布尔型 */ fun IsContinuous(numbers: IntArray): Boolean { // write code here } }
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param numbers int整型一维数组 * @return bool布尔型 */ public boolean IsContinuous (int[] numbers) { // write code here } }
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param numbers int整型一维数组 * @return bool布尔型 */ export function IsContinuous(numbers: number[]): boolean { // write code here }
public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param numbers int整型一维数组 * @return bool布尔型 */ func IsContinuous ( _ numbers: [Int]) -> Bool { // write code here } }
struct Solution{ } impl Solution { fn new() -> Self { Solution{} } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param numbers int整型一维数组 * @return bool布尔型 */ pub fn IsContinuous(&self, numbers: Vec
) -> bool { // write code here } }
[6,0,2,0,4]
true
[0,3,2,6,4]
true
[1,0,0,1,0]
false
[13,12,11,0,1]
false