Skip to content

Latest commit

 

History

History
58 lines (31 loc) · 922 Bytes

README_EN.md

File metadata and controls

58 lines (31 loc) · 922 Bytes

中文文档

Description

Write a method to compute all permutations of a string whose charac­ ters are not necessarily unique. The list of permutations should not have duplicates.

Example1:

 Input: S = "qqe"

 Output: ["eqq","qeq","qqe"]

Example2:

 Input: S = "ab"

 Output: ["ab", "ba"]

Note:

  1. All characters are English letters.
  2. 1 <= S.length <= 9

Solutions

Python3

Java

...