Set di Potenza

Elenca tutti i sottoinsiemi, incluso quello vuoto; il numero cresce come 2ⁿ.

Input: TestoRisultato: Testo

Inserimento di testo

Opzioni

Esempi

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.

Input

read,write

Expected answer


read
write
read,write
Delimitatore di elementi
,
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.

Input

json,csv

Expected answer


csv
json
json,csv
Delimitatore di elementi
,
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.

Input

red,blue,green

Expected answer


red
blue
green
red,blue
red,green
blue,green
red,blue,green
Delimitatore di elementi
,
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.

Input

draft,live

Expected answer


live
draft
draft,live
Delimitatore di elementi
,
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.

Input

yes,no,maybe

Expected answer


no
yes
maybe
yes,no
no,maybe
yes,maybe
yes,no,maybe
Delimitatore di elementi
,
Power set

Input

1 2 4

Expected answer


4
2
1
2 4
1 4
1 2
1 2 4
Delimitatore di elementi

Parametri

ParametroValore predefinitoInput e opzioni
Delimitatore di elementi","Sono supportate sequenze di escape come \n, \r e \t

Strumenti correlati

Aritmetica / Logica

Riferimento dell’operazione

Vedi la documentazione tecnica originale (English)