摘要: https://sp18.datastructur.es/materials/discussion/examprep05.pdf 2 Use them! a. 类似lc的第一题,直接用代码了 import java.util.HashMap; class Solution { public int[ 阅读全文
posted @ 2022-06-05 18:49 天然气之子 阅读(30) 评论(0) 推荐(0) 编辑
摘要: https://sp18.datastructur.es/materials/discussion/disc04.pdf Problem1: 1.Compile-Error 2.Compile-Error//这两个的问题都是 Dog类没有play函数 3.D 4.E 5.C 6.B 7.C 8.C 阅读全文
posted @ 2022-06-04 12:27 天然气之子 阅读(26) 评论(0) 推荐(0) 编辑
摘要: https://sp18.datastructur.es/materials/discussion/disc04.pdf public class Animal{ protected String name, noise; protected int age; public Animal(Strin 阅读全文
posted @ 2022-05-25 20:50 天然气之子 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 链接 https://sp18.datastructur.es/materials/discussion/disc03.pdf 1.1 public void insert(int item, int position){ if(first == null || position = 0){ add 阅读全文
posted @ 2022-05-15 00:10 天然气之子 阅读(23) 评论(0) 推荐(0) 编辑
摘要: pdf https://sp18.datastructur.es/materials/discussion/disc02.pdf question one: 1.Name: Pikachu, Level: 100 2. https://cscircles.cemc.uwaterloo.ca/java 阅读全文
posted @ 2022-05-12 15:21 天然气之子 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 网址 https://inst.eecs.berkeley.edu/~cs61a/fa21/disc/disc14/ #problem1: 就是两种情况考虑,然后加起来就好了 def paths(x, y): """Return a list of ways to reach y from x by 阅读全文
posted @ 2022-05-03 18:50 天然气之子 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 网址 https://inst.eecs.berkeley.edu/~cs61a/fa21/lab/lab14/ #problem1: 从上到下,每一次裁剪掉数值大的那个树枝 def prune_min(t): """Prune the tree mutatively. >>> t1 = Tree( 阅读全文
posted @ 2022-05-03 15:55 天然气之子 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 网址 https://inst.eecs.berkeley.edu/~cs61a/fa21/lab/lab13/ .read data.sql CREATE TABLE bluedog AS SELECT color, pet FROM students WHERE color = 'blue' A 阅读全文
posted @ 2022-05-01 23:23 天然气之子 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 网址 https://inst.eecs.berkeley.edu/~cs61a/fa21/hw/hw10/ BNF: rstring: "r\"" regex* "\"" ?regex: character | word | group | pipe | class | quants group: 阅读全文
posted @ 2022-04-30 20:22 天然气之子 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 网址 https://inst.eecs.berkeley.edu/~cs61a/fa21/hw/hw09/#q3-cs-classes problem1:了解正则表达式规则就可以写了 problem2: 第一步匹配[IVXLCDM],第二部不能匹配出现在其他单词里面的用 \b,第三步出现至少一次用 阅读全文
posted @ 2022-04-26 13:23 天然气之子 阅读(227) 评论(0) 推荐(0) 编辑