首页
首页
沸点
课程
直播
活动
竞赛
商城
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
argsno
掘友等级
搜索
|
美团
Java、Spring、大数据、分布式
获得徽章 0
动态
文章
专栏
沸点
收藏集
关注
赞
12
文章 10
沸点 2
赞
12
返回
|
搜索文章
文章
热门
最新
703. Kth Largest Element in a Stream
Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted order, not the kth distin…
CompletableFuture
runAsync返回的CompletableFuture是没有返回值的。 supplyAsync返回的CompletableFuture是有返回值的。 没有executor参数时,模式会在ForkJoinPool.commonPool()线程池中执行,否则会在给定的线程池中执行。
阿里巴巴并发的最佳实践
【强制】获取单例对象需要保证线程安全,其中的方法也要保证线程安全。 【强制】创建线程或线程池时请指定有意义的线程名称,方便出错时回溯。 【强制】线程资源必须通过线程池提供,不允许在应用中自行显式创建线程。 【强制】线程池不允许使用 Executors 去创建,而是通过 Thre…
25. Reverse Nodes in k-Group
难度:Hard思路1递归,然后逆转前k个元素思路2迭代更多
24. Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list's nodes, only nodes itsel…
142. Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, return null. To represent a cycle in the given linked li…
141. Linked List Cycle
Given a linked list, determine if it has a cycle in it. To represent a cycle in the given linked list, we use an integer pos which represen…
92. Reverse Linked List II
难度:Medium题目要求中文说明题解维护四个指针:dummy、prev、start、thendummy:头节点prev:指向翻转链表的前一个节点start:指向翻转链表的第一个节点的位置then:指
206. Reverse Linked List
反转一个单链表。 通过维护三个指针,分别指向prev、cur、next,循环遍历每个节点时,对其进行翻转。注意设置初始的prev为null。
算法精进之 k-d树
k-d树(k-dimensional树的简称),是一种分割k维数据空间的数据结构。主要应用于多维空间关键数据的搜索(如:范围搜索和最近邻搜索)。K-D树是二进制空间分割树的特殊的情况。 k-d tree是每个节点均为k维数值点的二叉树,其上的每个节点代表一个超平面,该超平面垂直…
下一页
个人成就
文章被点赞
22
文章被阅读
3,927
掘力值
139
关注了
27
关注者
2
收藏集
1
关注标签
4
加入于
2017-04-10