加载中...
public class Solution { public int FirstNotRepeatingChar(String str) { } }
class Solution { public: int FirstNotRepeatingChar(string str) { } };
# -*- coding:utf-8 -*- class Solution: def FirstNotRepeatingChar(self, s): # write code here
class Solution { public int FirstNotRepeatingChar(string str) { // write code here } }
function FirstNotRepeatingChar(str) { // write code here } module.exports = { FirstNotRepeatingChar : FirstNotRepeatingChar };
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param str string字符串 # @return int整型 # class Solution: def FirstNotRepeatingChar(self , str: str) -> int: # write code here
package main /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param str string字符串 * @return int整型 */ func FirstNotRepeatingChar( str string ) int { // write code here }
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param str string字符串 * @return int整型 */ int FirstNotRepeatingChar(char* str ) { // write code here }
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # @param str string字符串 # @return int整型 # class Solution def FirstNotRepeatingChar(str) # write code here end end
object Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param str string字符串 * @return int整型 */ def FirstNotRepeatingChar(str: String): Int = { // write code here } }
object Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param str string字符串 * @return int整型 */ fun FirstNotRepeatingChar(str: String): Int { // write code here } }
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param str string字符串 * @return int整型 */ public int FirstNotRepeatingChar (String str) { // write code here } }
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param str string字符串 * @return int整型 */ export function FirstNotRepeatingChar(str: string): number { // write code here }
public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param str string字符串 * @return int整型 */ func FirstNotRepeatingChar ( _ str: String) -> Int { // write code here } }
struct Solution{ } impl Solution { fn new() -> Self { Solution{} } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param str string字符串 * @return int整型 */ pub fn FirstNotRepeatingChar(&self, str: String) -> i32 { // write code here } }
"google"
4
"aa"
-1