Week 3 Staff Resources. Lists Video 1pp 1pps 8pp Final Review Slides Exam Prep Trees Video full 1pp 8pp Repeat Q4, but this time operate on tuples. Write a function that takes an rlist and produces an rlist of rlists containing all subsequences of the input rlist. A word begins a sentence if it is either the first word in S, or the preceding word in S ends in a period.
Week 16 Staff Resources. Lists Video 1pp 1pps 8pp Week 16 Staff Resources. Orders of Growth and Linked Lists. Homework questions Question 1: Week 10 Class Material.
Objects 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. Sets Video 1pp 1pps 8pp The map function in the Python hpmework actually allows you to write things like this:. Write a function that takes an rlist and produces an rlist of rlists containing all subsequences of the input rlist.
Mutable Functions Video 1pp 1pps 8pp Names Video full 1pp 8pp Higher-Order Functions Video full 1pp 8pp Tail Calls Video full 1pp 8pp Scheme Video full 1pp 8pp 44 You may use defs to break up the definition into manageable pieces, if desired:. Week 5 Staff Resources.
Homework 2 Solutions | CS 61A Summer
Trees Video full 1pp 8pp Week 7 Class Material. Week 12 Class Material.
Nonlocal and Object-Oriented Programming. Function Examples Video full 1pp 8pp Week 10 Staff Resources.
CS61A Homework 05
Composition Video full 1pp 8pp Lost on the Moon. Implement accumulate and show how summation and product can both be defined as simple calls to accumulate:. Streams Video 1pp 1pps 8pp Iteration Video full 1pp 8pp Week 17 Class Material.
The next two questions concern these relationships.
Midterm 2solutionsand walkthrough videos are posted. Scheme and Tail Recursion. This is an extension of one of the lab exercises:.
Week 12 Class Material. Macros Video full 1pp 8pp Week 16 Class Material. Week 6 Staff Resources.
Week 5 Class Material. Congratulations to the winners of the Scheme recursive art contest! Week 14 Staff Resources.