99 個 Elm 問題 / 問題 26
外觀
從列表的 N 個元素中選出 K 個不同物件,生成其所有組合。
# # # 這是一個存根 # # #
Example in Elm:
import Html exposing (text)
import List
f : Int -> Int
-- your implementation goes here
main = text (toString (f 0))
結果
4
從列表的 N 個元素中選出 K 個不同物件,生成其所有組合。
# # # 這是一個存根 # # #
Example in Elm:
import Html exposing (text)
import List
f : Int -> Int
-- your implementation goes here
main = text (toString (f 0))
結果
4