Мощность набора

Перечисляет все подмножества, включая пустое; их число растёт как 2ⁿ.

Ввод: ТекстРезультат: Текст

Текстовый ввод

Параметры инструмента

Примеры

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.

Ввод

read,write

Expected answer


read
write
read,write
Разделитель элементов
,
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.

Ввод

json,csv

Expected answer


csv
json
json,csv
Разделитель элементов
,
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.

Ввод

red,blue,green

Expected answer


red
blue
green
red,blue
red,green
blue,green
red,blue,green
Разделитель элементов
,
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.

Ввод

draft,live

Expected answer


live
draft
draft,live
Разделитель элементов
,
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.

Ввод

yes,no,maybe

Expected answer


no
yes
maybe
yes,no
no,maybe
yes,maybe
yes,no,maybe
Разделитель элементов
,
Power set

Ввод

1 2 4

Expected answer


4
2
1
2 4
1 4
1 2
1 2 4
Разделитель элементов

Параметры

ПараметрЗначение по умолчаниюВвод и варианты
Разделитель элементов","Поддерживаются escape-последовательности \n, \r и \t

Похожие инструменты

Арифметика / Логика

Справка об операции

Открыть исходную техническую документацию (English)