原文:[2021-Fall] Lab05 of CS61A of UCB

Lists Q : Factors List Write factors list, which takes a number n and returns a list of its factors in ascending order. 我們可以知道這么一個基本的數學事實: 一個數字的因子最大僅可能為它的一半 當這個數字是偶數的時候 . 所以我們的 for 循環只要遍歷到 n 即可 Q : Fl ...

2022-02-19 17:11 0 1141 推薦指數:

查看詳情

[2021-Fall] Lab07 of CS61A of UCB

Accounts Q2: Retirement Add a time_to_retire method to the Account class. This method takes i ...

Fri Feb 25 00:09:00 CST 2022 0 675
[2021-Fall] Lab10 of CS61A of UCB

Q2: Over or Under Define a procedure over-or-under which takes in a number num1 and a number num ...

Sun Feb 27 20:52:00 CST 2022 3 1018
[2021-Fall] Lab06 of CS61A of UCB

Mutability Write a function which takes in a list lst, an argument entry, and another argument ...

Mon Feb 21 08:35:00 CST 2022 0 1376
[2021-Fall] Lab09 of CS61A of UCB

Recursion and Tree Recursion Q1: Subsequences A subsequence of a sequence S is a subset of el ...

Sun Feb 27 05:56:00 CST 2022 0 1399
[2021-Fall] Lab08 of CS61A of UCB

Q2: Convert Link Write a function convert_link that takes in a linked list and returns the seque ...

Fri Feb 25 19:15:00 CST 2022 0 2117
[2021-Fall] Hw05 of CS61A of UCB

Q1: Generate Permutations Given a sequence of unique elements, a permutation of the sequence is ...

Thu Feb 24 08:00:00 CST 2022 0 3030
[2021-Fall] Hw06 of CS61A of UCB

OOP Q1: Vending Machine In this question you'll create a vending machine that only outputs a ...

Sun Feb 27 23:54:00 CST 2022 0 1295
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM