Week 6 Class Material. Congratulations to the winners of the Scheme recursive art contest! Use Ok to test your code: If you have any questions about using Ok, please refer to this guide. It should return a copy of the first argument, but with each word that occurs in the second argument replaced by the corresponding word of the third argument:. Streams Video full 1pp 8pp Week 15 Staff Resources.
Recursion Video full 1pp 8pp Week 14 Staff Resources. Using your solution to Q5, write substitute2 that takes a list, a list of old words, and a list of new words; the last two lists should be the same length. Data Abstraction Video full 1pp 8pp You are encouraged to try these questions once you have completed questions from the other two categories. Every student should have signed up for a discussion and lab section.
Macros Video full 1pp 8pp Use Ok to test your code: That is, a stream may contain itself as part of the stream definition.
Week 15 Class Material. However, these are questions that we consider either more difficult than what we would ask you on an exam or that focus on ideas we are not concerned with in this course, so please do not be discouraged if you do not solve them.
Week 13 Staff Resources. In homeworks, we have three different categories of questions: Midterm 1 Review Exam Prep Choose a method resolution order from the three approaches that have been used in Python since its invention. Representation Video full 1pp 8pp hlmework It is our hope that these categories will help guide you in deciding how to divide your time when working on the homeworks.
Week 12 Staff Resources. This question is not worth extra credit and is entirely optional i. Week 6 Class Material.
Week 4 Class Material. Week 12 Class Material. Week 7 Staff Resources. You will need to make the following changes: It should return a copy of the list, but with every occurrence of the old word replaced by the new word, even in sublists. Your solution should work even if s has an infinite number of items.
Lost on the Moon.
CS61A Homework 05
homewlrk You will need to make the following changes: Scheme Video full 1pp 8pp You are encouraged to try these questions once you have completed questions from the other two categories.
Scheme and Tail Recursion. You may submit more than once before the deadline; only the final submission will be scored. If you have any questions about using Ok, please refer to this guide.
Homework 11 | CS 61A Fall
Week 17 Staff Resources. Interpreters Video full 1pp 8pp. The code for the OOP implementation can be found in oop.
Using STk, you can load and execute functions from this file with the commands assuming you’re in the same directory as hw Data Abstraction Video homedork 1pp 8pp Cycles In Scheme, it’s possible to have a stream with cycles. Week 5 Class Material. Environments Video full 1pp 8pp