imperative-programming Questions
9
Solved
Consider the following imperative code which finds the largest palindrome among products of 3-digit numbers (yes, it's the one of the first tasks from "Project of [outstanding mathematician of 18th...
Closegrained asked 22/12, 2010 at 18:47
7
Solved
OK, no cheating now.
No, really, take a minute or two and try this out.
What does "positions" do?
Edit: simplified according to cgrand's suggestion.
(defn redux [[current next] flag] [(if flag ...
Lowly asked 13/11, 2009 at 3:27
5
Solved
I am starting to learn ocaml, and am really appreciating the power of recursion in the language. However, one thing that I am worried about is stack overflows.
If ocaml uses the stack for function...
Ramos asked 18/8, 2009 at 1:52
© 2022 - 2024 — McMap. All rights reserved.