possible combinations of upper and lower case string
How to get all possible combinations of upper and lower case string stored as a list of strings?
46 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I need to iterate through them
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
How big is your input data?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
but that is exactly my question
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
i am able to do something like this: cat => Cat, cAt, caT
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
but i need all combinations
what is yield returining
and why is your name exaxtly that
coincidence?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
i only need it for small words, im not going to have to get all combinations of a 1000 character word
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
No I dont.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I mean I can tell you, but I dont know how that will help
I want to create hashes for all combinations
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Is the need evaded?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I really dont want to use yield
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I have never heard or seen it
And a list seems perfomant enough
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
this was fun 🙂
yes
SharpLab
C#/VB/F# compiler playground.
you can see the longer the string the bigger it gets
thanks, I don't want to force someone to code it again, but I wonder how much better it really is than with lists
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
also you can remove the index, it isn't used anywhere anymore
Thank you
though you probably are doing something wrong if you need all permutations
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
.
good luck bruteforcing someone's password haha
educational purposes
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Whats that supposed to mean
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
okay
thats true
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
jesus
that doesn't look like C# for me anymore
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
idk if im inexpierenced, i have made some stuff work
im not a professional ofc
but syntax is just something i try to avoid for more readable code (also for myself)
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Oh I have no mute here, nice
Well it wasn't particularly necessary to do it this way
Hmm