CS61BL

Lab01: Java and Git Exercise: Leap Year 1234public static boolean isLeapYear(int year) { // TODO: Fill in this method. return year % 400 == 0 || (year % 4 == 0 &&...

阅读全文

CS61A Proj 3

Project 3: Ants Vs. SomeBees ants.zip The bees are coming! Create a better soldier With inherit-ants. Introduction Important submission note: For full credit, Submit with Phas...

阅读全文

CS61A Proj 2

Project 2: CS 61A Autocorrected Typing Software cats.zip Programmers dream of Abstraction, recursion, and Typing really fast. Introduction Important submission note: For full c...

阅读全文

CS61A Lab 8

Lab 8: Midterm Review lab08.zip Due by 11:59pm on Wednesday, March 16. Starter Files Download lab08.zip. Inside the archive, you will find starter files for the questions in this l...

阅读全文

CS61A Lab 7

Lab 7: Linked Lists, Trees / Tree Mutation lab07.zip What Would Python Display? Q1: WWPD: Linked Lists Read over the Link class in lab07.py. Make sure you understand the doctests. ...

阅读全文

CS61A Homework 5

Homework 5: Trees, Linked Lists hw05.zip Mid-Semester Feedback Q1: Mid-Semester Feedback As part of this week’s homework, please fill out the Mid-Semester Feedback form. This surve...

阅读全文

CS61A Lab 6

Lab 6: Object-Oriented Programming lab06.zip What Would Python Do? These questions use inheritance. For an overview of inheritance, see the inheritance portion of Composing Program...

阅读全文

CS61A Homework 4

Homework 4: Python Lists, Object-Oriented Programming hw04.zip Parsons Problems To work on these problems, open the Parsons editor: 1python3 parsons Q1: Remove Odd Indices Complete...

阅读全文

CS61A Lab 5

What Would Python Do? Q1: WWPD: List-Mutation Use Ok to test your knowledge with the following “What Would Python Display?” questions: 1python3 ok -q list-mutation -u✂️ Important:...

阅读全文

CS61A Lab 4

Lab 4: Recursion, Tree Recursion lab04.zip What Would Python Do? Q1: Squared Virahanka Fibonacci Use Ok to test your knowledge with the following “What Would Python Display?” ques...

阅读全文

CS61A Proj 1

Rules In Hog, two players alternate turns trying to be the first to end a turn with at least 100 total points. On each turn, the current player chooses some number of dice to roll,...

阅读全文

CS61A Lab 2

Currying We can transform multiple-argument functions into a chain of single-argument, higher order functions. For example, we can write a function f(x, y) as a different function ...

阅读全文

CS61A Lab 1

Lab 1: Variables & Functions, Control lab01.zip What Would Python Display? (WWPD) Q1: WWPD: Control Use Ok to test your knowledge with the following “What Would Python Display...

阅读全文

CS61A Homework 2

Homework 2: Higher Order Functions hw02.zip Several doctests refer to these functions: 12345from operator import add, mulsquare = lambda x: x * xidentity = lambda x: xtriple = lam...

阅读全文

CS61A Homework 1

Homework 1: Variables & Functions, Control hw01.zip Parsons Problems Q2: k in Num Write a function k_in_num which takes in two integers, k and num. k_in_num returns True if num...

阅读全文