加载中...
import java.util.*; public class Solution { public void Insert(Integer num) { } public Double GetMedian() { } }
class Solution { public: void Insert(int num) { } double GetMedian() { } };
# -*- coding:utf-8 -*- class Solution: def Insert(self, num): # write code here def GetMedian(self): # write code here
class Solution { public void Insert(int num) { // write code here } public double GetMedian() { // write code here } }
function Insert(num) { // write code here } function GetMedian(){ // write code here } module.exports = { Insert : Insert, GetMedian : GetMedian };
# -*- coding:utf-8 -*- class Solution: def Insert(self, num): # write code here def GetMedian(self): # write code here
package main func Insert(num int){ } func GetMedian() float64{ }
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param num int整型 * @return 无 */ void Insert(int num ) { // write code here } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param 无 * @return double浮点型 */ double GetMedian() { // write code here }
object Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param num int整型 * @return 无 */ fun Insert(num: Int) { // write code here } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param 无 * @return double浮点型 */ fun GetMedian(): Double { // write code here } }
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param num int整型 * @return 无 */ export function Insert(num: number) { // write code here } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param 无 * @return double浮点型 */ export function GetMedian(): number { // write code here }
public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param num int整型 * @return 无 */ func Insert ( _ num: Int) { // write code here } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param 无 * @return double浮点型 */ func GetMedian () -> Double { // write code here } }
[5,2,3,4,1,6,7,0,8]
"5.00 3.50 3.00 3.50 3.00 3.50 4.00 3.50 4.00 "
[1,1,1]
"1.00 1.00 1.00 "