Skip to content

Conversation

@diamondlin2016
Copy link

No description provided.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注释

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有个错别字,多说空间

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

食用数组 哈哈

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

提个建议看了你说了这么多,没有一张图来说明他的结构涨什么样,还有1.7到1.8的区别
因为我之前看的时候踩过坑。谢谢!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.8一个 bucket 里面的元素超过8个会连边转红黑树。数据结构感觉我已经讲清楚了。。。。要去偷图嘛。。。。

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

别着急,今天好好提意见

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MarkDown 语法错误,加个空格

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

集合一 初步审核

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这也是Markdown语法错误

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修正

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AbstractList 里边的 modCount 上文没看到你做一个过渡提到过

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#fail-fast 价格空格

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. CopyOnWriteArrayList,ConcurrentHashMap 替换 ArrayList, HashMap
    改为 CopyOnWriteArrayList 、ConcurrentHashMap 替换 ArrayList 、HashMap 是不是比较好
  2. 这样就不会影响原来的迭代。不过坏处就是浪费内存。
    改为 这样就不会影响原来的迭代,不过坏处就是浪费内存。
  3. 为什么要提到 ConcurrentHashMap 替换 HashMap ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已更正

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里给“迭代器模式” 文章的一个连接,而不是只只让人搜索一下,给个能点击的链接

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉没说到具体,原因是modCount(修改的数组次数) 和 expectedModCount(期望修改的数组次数) 不一致会抛出 ConcurrentModificationException 这个错误

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

集合二 初步审核

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是不是也要说一下 Collections 和 Arrays 这两个工具类

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加个空格

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里描述的不严谨吧,集合解决了 只有数组这种类型吗? 还是其中之一

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是不是可以添加 Collections 和 Arrays 工具类的理解

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,加上了

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

集合三 初步审核完毕

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

图片没有显示出来

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

集合 (七) 初步审核

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有出现图片

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LinkedArrayList 毕竟是双向链表,HashMap 中是单链表,两者有区别的,你直接说查找 从O(n)的查找时间就得了。。。

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

则执行插入空 kye 的方法 kye--》key

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

集合五 初步审核完毕

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

特殊的完全二叉树 ,这里你父节点都小于子节点,也成为最小堆 ,这里你应该表达为堆的操作比较好

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你举个医院看病的例子呀 这是动态插入变量的问题出来,比如 在医院病人一直在添加,而且病人分优先级,比如急诊的普通感冒的人就应该先看病,这个例子比较贴切。

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PriorityQueue 整体解释下来,感觉有点乱

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants