...

/

Challenge 2: Print all Permutations of a String

Challenge 2: Print all Permutations of a String

In this lesson, you must implement the code to find and print all permutations of a given string using recursion.

We'll cover the following...

Problem Statement

For this challenge, you will be given an array and its length, and you must print out all the permutations of the array.

A permutation is an arrangement of all or part of a set of objects. For example,- the arrangement of words ‘cat’ and ‘act’ represent two distinct permutations (or arrangements) of a similar three letter word.

The illustration below explains the concept.

Access this course and 1400+ top-rated courses and projects.