hdaw001 2015-10-25 19:51 采纳率: 0%
浏览 1503
已结题

Java structures 上的作业题,,求大神解答~~

java structures Data strucures for the principled programmer
书上的一个作业题目 求大神解答。一共2题,,。。
Which implementation of the size and isEmpty methods would you use if you had the potential for a million-element list. (Consider the problem of keeping track of the alumni for the University of Michigan.) How would you choose if you had the potential for a million small lists. (Consider the problem of keeping track of the dependents for each of a million income-tax returns.)
图片说明

第二题:
Suppose we read n integers 1, 2, . . . , n from the input, in order. Flipping a coin, we add each new value to either the head or tail of the list. Does this shuffle the data?
图片说明

多谢各位大神~~

  • 写回答

1条回答 默认 最新

  • 关注

    1、size
    2、yes

    评论

报告相同问题?

悬赏问题

  • ¥100 求数学坐标画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站