Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 307 Bytes

File metadata and controls

24 lines (20 loc) · 307 Bytes

Print All Permutations Of A String Iteratively

Easy


  1. You are given a string.
  2. You have to print all permutations of the given string iteratively.

Example 1:

Input:  abc
Output:  
abc
bac
cab
acb
bca
cba

Constraints:

1 <= length of string <= 15