Coders Packet

C++ program to print all the possible permutations of a string.

By Sharad Verma

This packet implements the algorithm to find all the possible permutations of a string in C++

This C++ code implements the algorithm to print all the possible permutations of a string.

For example,  string "god" will have the following possible permutations :

god

gdo

ogd

odg

dgo

dog

How to use the code : 

1- Run the code

2- Enter your string when prompted

3- Our driver code will call the function to print all the possible permutations.

4- All the possible permutations of the string will be printed on the output string.

Uses :

1- Following code can be used to guess the password using brute force method.

 

Download project

Reviews Report

Submitted by Sharad Verma (vermasharad)

Download packets of source code on Coders Packet