R
R
Romses Panagiotis2021-06-21 00:20:47
Algorithms
Romses Panagiotis, 2021-06-21 00:20:47

How to arrange an array of strings into groups of identical strings that can be obtained by rearranging characters in them?

There is a task on algorithms (translated from English), the text of which is in the question and I cannot understand the essence of the task.

English text.
How to arrange an array of strings into groups of the same strings which can be obtained by permuting characters in them?

Could you give me an example?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hint000, 2021-06-21
@romesses

Source array:
qwer
asdfgh
zxcvb
qwsd
zxqa
erwq
qrwe
zvxbc To
be grouped like this:
qwer
erwq
qrwe
asdfgh
zxcvb
zvxbc
qwsd
zxqa

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question