Mutable Values Video full 1pp 8pp Week 5 Class Material. Mutable Functions Video full 1pp 8pp You may use defs to break up the definition into manageable pieces, if desired:. As in previous problems, no loops or recursion. Midterm 2 , solutions , and walkthrough videos are posted.
This is an extension of one of the lab exercises:. Calculator Video full 1pp 8pp The map function in the Python library actually allows you to write things like this: Ordered Sets Video full 1pp 8pp When n is 0, the result is x; when n is 1, the result is f x ; when n is 2, f f x , etc. Objects Video full 1pp 8pp
Specifically, do not use recursion or any kind of loop: Somewhat confusingly, we’ve been using tuples to represent rlists. Scheme Video 1pp 1pps 8pp Write a function that takes an rlist and produces an rlist of rlists containing all subsequences of the input rlist.
Tree Sets Video full 1pp 8pp Week 15 Staff Resources. Distributed Data Video full 1pp 8pp Week 3 Class Material. Show how to define hommework factorial function in terms of product.
Week 4 Class Material. Streams Video full 1pp 8pp Tables Video full 1pp 8pp Devise a function that counts the number of palindromic words those that read the same backwards as forwards in a list of words using only these functions, lambdabasic operations on strings, and conditional expressions. Functions Video full 1pp 8pp We’ll eventually see ways in which this confusion can be avoided, but for now, we’ll just have to be careful.
Show how to use this to take a text consisting of a sequence of words and to return the same words, but with the beginnings of sentences capitalized: Data Examples Video full 1pp 8pp Users Video 1pp 1pps 8pp.
Homework 2 Solutions | CS 61A Summer
Week 13 Class Material. Midterm 1 Review Exam Prep Names Video full 1pp 8pp Week 12 Staff Resources. The map function in the Python library actually allows you to write things like this: We’ll eventually see ways in which this confusion can be avoided, but for now, we’ll just have to be homewotk. Nobody says you have to construct your rlist from the front.
Nonlocal and Object-Oriented Programming. As in previous problems, no loops or recursion. Lost on the Moon.
CS61A Homework 05
Week 14 Staff Resources. Nonlocal and Object-Oriented Programming. Scheme Video full 1pp 8pp Ohmework Functions Video full 1pp 8pp Declarative Programming Video full 1pp 8pp The next two questions concern these relationships. Week 10 Staff Resources.
Environments Video 1pp 1pps 8pp