Monkeyanator
Monkeyanator

Reputation: 1416

C++ Programming Creative Issue Solving

I must be an idiot, but I just cannot find a way to solve this issue:

I want to make a program that takes a jumbled set of chars. and find all possible English words. My issue is that for the life of me I can't figure out how to make all possible combinations of words. I'm fine with the dictionary cross-check, but it's the jumbling that I'm having issues with. Could someone help with this?

Upvotes: 0

Views: 99

Answers (1)

drdwilcox
drdwilcox

Reputation: 3951

Since you are working in C++, you could use the next_permutation() algorithm from the standard template library: http://www.cplusplus.com/reference/algorithm/next_permutation/

Upvotes: 3

Related Questions