Evgenii-Bazhaov / Hacktoberfest2024

Make your first Pull Request on Hacktoberfest 2024. Don't forget to spread love and give us a ⭐️
https://hacktoberfest2024-nu.vercel.app
GNU General Public License v3.0
62 stars 250 forks source link

Backtracking algo #313

Open yesiamrajeev opened 3 weeks ago

yesiamrajeev commented 3 weeks ago

A simple example to understand backtracking. There is a String of length 3 we need to find every possible combinations for the String's characters replaced among each other. The possibility lies in the Factorial. If the String's length is 3 then there are 6 possibilities which is N!. Like that if the String's length is 4 then it'll be 24 just N!.

I want you to assign this issue to me with hacktoberfest lebel on it.