K
K
Kayrakly Maxim2020-11-11 22:01:20
Algorithms
Kayrakly Maxim, 2020-11-11 22:01:20

How to make all possible combinations of dots in a word?

I have the word "maybuttia" and I need to find out all possible combinations of dots in this word. For example "ma.yb.uttia" or something like that. How can I do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BasiC2k, 2020-11-12
@BasiC2k

Word length + 1 is the number of bits. The bit can be in the status "yes" (there is a point) or "no" (there is no point. Accordingly, for your example, you need to raise the number 2 to the power (length of the word + 1).
This will be the answer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question