Comment detail

隣り合う二項の差 (Nested Flatten)

This comment is reply for 2397 iwk: (隣り合う二項の差). Go to thread root.

修正。
1
2
3
4
5
6
7
#light
let rec diff = function
    | [] -> []
    | x::[] -> []
    | x::x'::xs -> (x'-x)::diff (x'::xs)

let xs = [3;1;4;1;5;9;2;6;5]

Index

Feed

Other

Link

Pathtraq

loading...