Pinned Loading
-
Pascal's Triangle in Clojure
Pascal's Triangle in Clojure 1(defn next-row [row]
2(let [inner-section (mapv #(+ %1 %2) (butlast row) (rest row))]
3(cons 1 (conj inner-section 1))))
45(defn pascal
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.