加载中...
public class Solution { //Insert one char from stringstream public void Insert(char ch) { } //return the first appearence once char in current stringstream public char FirstAppearingOnce() { } }
class Solution { public: //Insert one char from stringstream void Insert(char ch) { } //return the first appearence once char in current stringstream char FirstAppearingOnce() { } };
# -*- coding:utf-8 -*- class Solution: # 返回对应char def FirstAppearingOnce(self): # write code here def Insert(self, char): # write code here
class Solution { public char FirstAppearingOnce() { // write code here } public void Insert(char c) { // write code here } }
//Init module if you need function Init() { // write code here } //Insert one char from stringstream function Insert(ch) { // write code here } //return the first appearence once char in current stringstream function FirstAppearingOnce() { // write code here } module.exports = { Init : Init, Insert : Insert, FirstAppearingOnce: FirstAppearingOnce };
# -*- coding:utf-8 -*- class Solution: # 返回对应char def FirstAppearingOnce(self): # write code here def Insert(self, char): # write code here
package main func Insert(ch byte) { } func FirstAppearingOnce() byte { }
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param ch char字符型 * @return 无 */ void Insert(char ch ) { // write code here } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param 无 * @return char字符型 */ char FirstAppearingOnce() { // write code here }
object Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param ch char字符型 * @return 无 */ fun Insert(ch: Char) { // write code here } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param 无 * @return char字符型 */ fun FirstAppearingOnce(): Char { // write code here } }
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param ch string字符串型 * @return 无 */ export function Insert(ch: string) { // write code here } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param 无 * @return string字符串型 */ export function FirstAppearingOnce(): string { // write code here }
public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param ch char字符型 * @return 无 */ func Insert ( _ ch: Character) { // write code here } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param 无 * @return char字符型 */ func FirstAppearingOnce () -> Character { // write code here } }
"google"
"ggg#ll"
"abcdee"
"aaaaaa"