Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions day10/Python/str_permutations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""
* @author: ashwek
* @date 2/1/2019
"""
from itertools import permutations

String = "123"

for each in permutations(String):
print(''.join(each))
16 changes: 15 additions & 1 deletion day10/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![cover](./cover.png)

# Day 10 -- Smallest Substring Problem
# Day 10 -- String Permutation Problem

**Question** Find all the permutations of the given string

Expand Down Expand Up @@ -90,6 +90,20 @@ def main():
main()
```

### [Solution2](./Python/st_permutations.py)
```python
"""
* @author: ashwek
* @date 2/1/2019
"""
from itertools import permutations

String = "123"

for each in permutations(String):
print(''.join(each))
```

## Java Implementation

### [Solution](./Java/Permutation.java)
Expand Down