What's a good way for figuring out all possible words of a given length

后端 未结 12 1800
一生所求
一生所求 2021-02-04 17:27

I\'m trying to create an algorithm in C# which produces the following output strings:

AAAA
AAAB
AAAC
...and so on...
ZZZX
ZZZY
ZZZZ

What is the

12条回答
  •  南笙
    南笙 (楼主)
    2021-02-04 18:15

    Use something which automatically Googles for every single letter combination, then see if there are more ".sz" or ".af" hits then ".com" hits at the five first results ... ;)

    Seriously, what you're looking for might be Tries (data structure) though you still need to populate the thing which probably is far harder...

提交回复
热议问题