Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ce8de8c

Browse files
Merge pull request #1 from prashant3360/prashant3360-patch-1
Created a new folder and file
2 parents 2398642 + 2086a7c commit ce8de8c

File tree

1 file changed

+26
-0
lines changed
  • Practice Problems/Backtracking/PermutationsOfString

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Permutations of a given string
2+
3+
**Problem from GeeksForGeeks**
4+
5+
A permutation, also called an "arrangement number" or "order," is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with S itself. A string of length n has n! permutation.
6+
Your task is to print all permutations of a given `input` string in new line.
7+
8+
### Examples:
9+
10+
#### 1
11+
12+
**Input** :
13+
```java
14+
input = "ABC"
15+
```
16+
17+
**Output:** :
18+
```java
19+
ACB
20+
BCA
21+
ABC
22+
CBA
23+
BAC
24+
CAB
25+
```
26+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /