12
返回列表 发新帖
楼主: ryanli
跳转到指定楼层
上一主题 下一主题
收起左侧

Berkeley CS 61B Data Structures(in Java) Lab9 讨论帖

🔗
闲的时光 2016-11-28 21:01:19 | 只看该作者
全局:
Lab9


Testing removeLeaf().  Removing one node from 6-node tree.
Removing another node from 5-node tree.
Attempting to remove non-leaf node from 4-node tree.
  Operation should have no effect.
Attempting to remove invalid node from 4-node tree.
The tree looks like this:
1
  12
  13
    131
[The above sequence should be 1, 12, 13, 131.]
Removing remaining nodes from 4-node tree.

回复

使用道具 举报

🔗
mmyn 2017-5-11 18:00:15 | 只看该作者
全局:
还是Lab和蔼可亲,即将奔赴Project2,内心还是很慌的…
回复

使用道具 举报

🔗
liniua 2017-6-24 14:44:48 | 只看该作者
全局:
Creating 2-node tree.
Testing parent().

Testing insertChild().  Adding two more nodes to the 2-node tree.
Adding two more nodes to the 4-node tree.
This node is invalid, cannot insert a child.
  ERROR:  insertChild() failed to throw exception on invalid node.
The tree looks like this:
1
  11
  12
  13
    131
    132
[The above sequence should be 1, 11, 12, 13, 131, 132.]

Testing removeLeaf().  Removing one node from 6-node tree.
Removing another node from 5-node tree.
Attempting to remove non-leaf node from 4-node tree.
  Operation should have no effect.
Attempting to remove invalid node from 4-node tree.
The tree looks like this:
1
  12
  13
    131
[The above sequence should be 1, 12, 13, 131.]
Removing remaining nodes from 4-node tree.

Process finished with exit code 0
回复

使用道具 举报

🔗
SaltSprayAir 2017-6-27 16:30:33 | 只看该作者
全局:
lab也来回复一下吧

Screen Shot 2017-06-27 at 01.29.02.png (78.12 KB, 下载次数: 0)

Screen Shot 2017-06-27 at 01.29.02.png
回复

使用道具 举报

🔗
yywwd 2017-8-2 18:40:30 | 只看该作者
全局:
打卡!感觉自己coding能力还是好弱

Lab10.png (31.23 KB, 下载次数: 0)

Lab10.png
回复

使用道具 举报

🔗
skyevil12 2017-12-6 08:54:44 | 只看该作者
全局:
我上的是2014年的 所以是Lab10
  1. D:\Git\DSA\CS61B\lab10>java -ea tree.SibTree
  2. Creating 2-node tree.
  3. Testing parent().

  4. Testing insertChild().  Adding two more nodes to the 2-node tree.
  5. Adding two more nodes to the 4-node tree.
  6. The tree looks like this:
  7. 1
  8.   11
  9.   12
  10.   13
  11.     131
  12.     132
  13. [The above sequence should be 1, 11, 12, 13, 131, 132.]

  14. Testing removeLeaf().  Removing one node from 6-node tree.
  15. Removing another node from 5-node tree.
  16. Attempting to remove non-leaf node from 4-node tree.
  17.   Operation should have no effect.
  18. Attempting to remove invalid node from 4-node tree.
  19. The tree looks like this:
  20. 1
  21.   12
  22.   13
  23.     131
  24. [The above sequence should be 1, 12, 13, 131.]
  25. Removing remaining nodes from 4-node tree.
复制代码
回复

使用道具 举报

🔗
bigworld 2018-3-8 13:46:20 | 只看该作者
全局:
Lab10打卡。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表