原文:[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