加载中...
import java.util.ArrayList; public class Solution { public ArrayList
Permutation(String str) { } }
class Solution { public: vector
Permutation(string str) { } };
# -*- coding:utf-8 -*- class Solution: def Permutation(self, ss): # write code here
class Solution { public List
Permutation(string str) { // write code here } }
function Permutation(str) { // write code here } module.exports = { Permutation : Permutation };
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param str string字符串 # @return string字符串一维数组 # class Solution: def Permutation(self , str: str) -> List[str]: # write code here
package main /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param str string字符串 * @return string字符串一维数组 */ func Permutation( str string ) []string { // write code here }
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param str string字符串 * @return string字符串一维数组 * @return int* returnSize 返回数组行数 */ char** Permutation(char* str, int* returnSize ) { // write code here }
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # @param str string字符串 # @return string字符串一维数组 # class Solution def Permutation(str) # write code here end end
object Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param str string字符串 * @return string字符串一维数组 */ def Permutation(str: String): Array[String] = { // write code here } }
object Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param str string字符串 * @return string字符串一维数组 */ fun Permutation(str: String): Array
{ // write code here } }
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param str string字符串 * @return string字符串一维数组 */ public String[] Permutation (String str) { // write code here } }
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param str string字符串 * @return string字符串一维数组 */ export function Permutation(str: string): string[] { // write code here }
public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param str string字符串 * @return string字符串一维数组 */ func Permutation ( _ str: String) -> [String] { // write code here } }
struct Solution{ } impl Solution { fn new() -> Self { Solution{} } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param str string字符串 * @return string字符串一维数组 */ pub fn Permutation(&self, str: String) -> Vec
{ // write code here } }
"ab"
["ab","ba"]
"aab"
["aab","aba","baa"]
"abc"
["abc","acb","bac","bca","cab","cba"]
""
[]