Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void CrackPassword()
- {
- RecPremutation("","thisIsTheWordIWantToFindAnagamsFor");
- }
- List<String> xd = new List<string>();
- static void RecPermutation(string soFar, string input)
- {
- if (string.IsNullOrEmpty(input))
- {
- xd.Add(soFar);
- }
- else
- {
- for (int i = 0; i < input.Length; i++)
- {
- RecPermutation(soFar + input[i], input.Remove(i,1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement