幂集

列出輸入集合的全部子集,包括空集;結果數量按 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
Item 分隔符
,
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
Item 分隔符
,
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
Item 分隔符
,
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
Item 分隔符
,
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
Item 分隔符
,
Power set

輸入

1 2 4

Expected answer


4
2
1
2 4
1 4
1 2
1 2 4
Item 分隔符

参數

参數默認值輸入與選項
Item 分隔符","支持 \n、\r 和 \t 等跳脫序列

相关工具

算術 / 邏輯

操作参考

查看原始技术文檔 (English)