+ 7
Challenge: Crack the "password" password
You are trying to access your account on your website, and you cannot remember your password. The only thing you can remember about it is that it is some combination of the word "password" where the letters could be upper or lowercase, and you may have substituted 'a' with '@', 's' with '5', or 'o' with '0' (zero). Write code that will output all possible combinations of "password" with the above substitutions. No word may be repeated.
8 Antworten
+ 7
I'm so glad to finally see a CS submission in challenge by @MobPsycho???!
Anyway here's my C# implementation with LINQ in 2 different syntax (i.e. Query and Method):-
https://code.sololearn.com/cL57mW51kKmK/?ref=app
I'm still trying to find a clean way to generalize my approach and if anyone got better idea kindly please let me know. Enjoy! ✌
+ 2
combinations without repetition?
+ 2
Yeah, I've actually written permuters to recover my own passwords, but I associate it with being annoyed so I might skip this one :)
+ 2
"combinations without repetition?"
yes. as in the list can't contain the same word more than once.
not allowed:
password
P@5sword
p@s5w0rd *
p@s5w0rd *
* this repetition isn't allowed. its a waste of resources otherwise.
+ 1
my one, in javascript https://code.sololearn.com/WWZyf0h0sI72/?ref=app