SICP 1.2.2 asks for iterative-process impl of change-counting algorithm. + I tried during today—no dice. Ideas?
Conversation
Replying to
just like Fibonacci seq only depends on last 2 vals, change-counting seq depends on last 25
2
so a straightforward way to extend Fib technique would be to have an at-most-25 elem list accum
1
Show replies
So lists may not have been introduced but one could argue that someone could discover Church encodings.
1
Show replies
Replying to
1
@chrisncopeland I mean, we know Church figured this out once, maybe Church is the standard for MIT freshmen?


