Conjunto de Energia

Lista todos os subconjuntos, incluindo o vazio; a quantidade cresce como 2ⁿ.

Entrada: TextoResultado: Texto

Entrada de texto

Opções

Exemplos

List all combinations of read, write

List all combinations of read, write. The input is a small public learning fixture; it contains no private production data.

Entrada

read,write

Expected answer


read
write
read,write
Delimitador de itens
,
List all combinations of json, csv

List all combinations of json, csv. The input is a small public learning fixture; it contains no private production data.

Entrada

json,csv

Expected answer


csv
json
json,csv
Delimitador de itens
,
List all combinations of red, blue, green

List all combinations of red, blue, green. The input is a small public learning fixture; it contains no private production data.

Entrada

red,blue,green

Expected answer


red
blue
green
red,blue
red,green
blue,green
red,blue,green
Delimitador de itens
,
List all combinations of draft, live

List all combinations of draft, live. The input is a small public learning fixture; it contains no private production data.

Entrada

draft,live

Expected answer


live
draft
draft,live
Delimitador de itens
,
List all combinations of yes, no, maybe

List all combinations of yes, no, maybe. The input is a small public learning fixture; it contains no private production data.

Entrada

yes,no,maybe

Expected answer


no
yes
maybe
yes,no
no,maybe
yes,maybe
yes,no,maybe
Delimitador de itens
,
Power set

Entrada

1 2 4

Expected answer


4
2
1
2 4
1 4
1 2
1 2 4
Delimitador de itens

Parâmetros

ParâmetroValor padrãoEntrada e opções
Delimitador de itens","Sequências de escape como \n, \r e \t são aceitas

Ferramentas relacionadas

Aritmética / Lógica

Referência da operação

Ver a documentação técnica original (English)