A
A
Alexander Ivanov2022-04-17 17:55:40
Text Processing Automation
Alexander Ivanov, 2022-04-17 17:55:40

How to create a database of sequences?

There are 10 words, task: to make a base of all possible unique sequences of arrangements of these words one after another. What software can do this? Are there ready-made solutions?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MaxKozlov, 2022-04-18
@alexivanov77

In any convenient programming language.
google "permutations."
Here is an example in python

import itertools
for p in itertools.permutations(['aa','bb','cc','dd','ee','ff','gg','hh','ii','jj'],10): print(p)

N
Nikolai Savelyev, 2022-04-18
@AgentSmith

This is an interview problem for the junam.

What software can do this? Are there ready-made solutions?

Facepalm
Soft - any PL. Ready solution - loops, arrays, variables.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question