Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
yangkaifeng
Fucking Algorithm
提交
03ccab91
F
Fucking Algorithm
项目概览
yangkaifeng
/
Fucking Algorithm
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Fucking Algorithm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
03ccab91
编写于
9月 06, 2022
作者:
L
labuladong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update content
上级
93f5752c
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
21 addition
and
5 deletion
+21
-5
数据结构系列/单调栈.md
数据结构系列/单调栈.md
+1
-1
数据结构系列/单调队列.md
数据结构系列/单调队列.md
+1
-1
数据结构系列/设计Twitter.md
数据结构系列/设计Twitter.md
+2
-2
数据结构系列/递归反转链表的一部分.md
数据结构系列/递归反转链表的一部分.md
+2
-0
算法思维系列/二分查找详解.md
算法思维系列/二分查找详解.md
+2
-0
算法思维系列/前缀和技巧.md
算法思维系列/前缀和技巧.md
+2
-0
算法思维系列/双指针技巧.md
算法思维系列/双指针技巧.md
+2
-0
算法思维系列/回溯算法详解修订版.md
算法思维系列/回溯算法详解修订版.md
+2
-0
算法思维系列/字符串乘法.md
算法思维系列/字符串乘法.md
+2
-0
算法思维系列/烧饼排序.md
算法思维系列/烧饼排序.md
+2
-0
高频面试系列/LRU算法.md
高频面试系列/LRU算法.md
+1
-1
高频面试系列/子集排列组合.md
高频面试系列/子集排列组合.md
+2
-0
未找到文件。
数据结构系列/单调栈.md
浏览文件 @
03ccab91
...
...
@@ -201,7 +201,7 @@ int[] nextGreaterElements(int[] nums) {
最后提出一些问题吧,本文提供的单调栈模板是
`nextGreaterElement`
函数,可以计算每个元素的下一个更大元素,但如果题目让你计算上一个更大元素,或者计算上一个更大或相等的元素,应该如何修改对应的模板呢?而且在实际应用中,题目不会直接让你计算下一个(上一个)更大(小)的元素,你如何把问题转化成单调栈相关的问题呢?
我会在
[
单调栈的几种变体
](
https://appktavsiei5995.pc.xiaoe-tech.com/detail/i_628dc1ace4b09dda126cf793/1
)
对比单调栈的几种其他形式,并在
[
单调栈的运用
](
https://appktavsiei5995.pc.xiaoe-tech.com/detail/i_628dc2d7e4b0cedf38b67734/1
)
中给出单调栈的经典例题。
我会在
[
单调栈的几种变体
](
https://appktavsiei5995.pc.xiaoe-tech.com/detail/i_628dc1ace4b09dda126cf793/1
)
对比单调栈的几种其他形式,并在
[
单调栈的运用
](
https://appktavsiei5995.pc.xiaoe-tech.com/detail/i_628dc2d7e4b0cedf38b67734/1
)
中给出单调栈的经典例题。
更多数据结构设计类题目参见
[
数据结构设计经典习题
](
https://appktavsiei5995.pc.xiaoe-tech.com/detail/i_6312b9e5e4b0eca59c2b7e93/1
)
。
**_____________**
...
...
数据结构系列/单调队列.md
浏览文件 @
03ccab91
...
...
@@ -268,7 +268,7 @@ class MonotonicQueue<E extends Comparable<E>> {
}
```
我将在
[
单调队列通用实现及应用
](
https://appktavsiei5995.pc.xiaoe-tech.com/detail/i_62a692efe4b01a48520b9b9b/1
)
中给出单调队列的通用实现和经典习题。
我将在
[
单调队列通用实现及应用
](
https://appktavsiei5995.pc.xiaoe-tech.com/detail/i_62a692efe4b01a48520b9b9b/1
)
中给出单调队列的通用实现和经典习题。
更多数据结构设计类题目参见
[
数据结构设计经典习题
](
https://appktavsiei5995.pc.xiaoe-tech.com/detail/i_6312b9e5e4b0eca59c2b7e93/1
)
。
**_____________**
...
...
数据结构系列/设计Twitter.md
浏览文件 @
03ccab91
...
...
@@ -290,9 +290,9 @@ public List<Integer> getNewsFeed(int userId) {
![](
https://labuladong.github.io/algo/images/设计Twitter/design.png
)
我们解决的问题应该只能算 Timeline Service 模块的一小部分,功能越多,系统的复杂性可能是指数级增长的。所以说合理的顶层设计十分重要,其作用是远超某一个算法的。
我们解决的问题应该只能算 Timeline Service 模块的一小部分,功能越多,系统的复杂性可能是指数级增长的。所以说合理的顶层设计十分重要,其作用是远超某一个算法的。
Github 上有一个优秀的开源项目,专门收集了很多大型系统设计的案例和解析,而且有中文版本,上面这个图也出自该项目。对系统设计感兴趣的读者可以点击
[
这里
](
https://github.com/donnemartin/system-design-primer
)
查看。
最后,Github 上有一个优秀的开源项目,专门收集了很多大型系统设计的案例和解析,而且有中文版本,上面这个图也出自该项目。对系统设计感兴趣的读者可以点击
[
这里
](
https://github.com/donnemartin/system-design-primer
)
查看
。
本文就到这里,更多数据结构设计相关的题目参见
[
数据结构设计经典习题
](
https://appktavsiei5995.pc.xiaoe-tech.com/detail/i_6312b9e5e4b0eca59c2b7e93/1
)
。
**_____________**
...
...
数据结构系列/递归反转链表的一部分.md
浏览文件 @
03ccab91
...
...
@@ -4,6 +4,8 @@
<p
align=
'center'
>
<a
href=
"https://github.com/labuladong/fucking-algorithm"
target=
"view_window"
><img
alt=
"GitHub"
src=
"https://img.shields.io/github/stars/labuladong/fucking-algorithm?label=Stars&style=flat-square&logo=GitHub"
></a>
<a
href=
"https://appktavsiei5995.pc.xiaoe-tech.com/index"
target=
"_blank"
><img
class=
"my_header_icon"
src=
"https://img.shields.io/static/v1?label=精品课程&message=查看&color=pink&style=flat"
></a>
...
...
算法思维系列/二分查找详解.md
浏览文件 @
03ccab91
...
...
@@ -6,6 +6,8 @@
<p
align=
'center'
>
<a
href=
"https://github.com/labuladong/fucking-algorithm"
target=
"view_window"
><img
alt=
"GitHub"
src=
"https://img.shields.io/github/stars/labuladong/fucking-algorithm?label=Stars&style=flat-square&logo=GitHub"
></a>
<a
href=
"https://appktavsiei5995.pc.xiaoe-tech.com/index"
target=
"_blank"
><img
class=
"my_header_icon"
src=
"https://img.shields.io/static/v1?label=精品课程&message=查看&color=pink&style=flat"
></a>
...
...
算法思维系列/前缀和技巧.md
浏览文件 @
03ccab91
...
...
@@ -6,6 +6,8 @@
<p
align=
'center'
>
<a
href=
"https://github.com/labuladong/fucking-algorithm"
target=
"view_window"
><img
alt=
"GitHub"
src=
"https://img.shields.io/github/stars/labuladong/fucking-algorithm?label=Stars&style=flat-square&logo=GitHub"
></a>
<a
href=
"https://appktavsiei5995.pc.xiaoe-tech.com/index"
target=
"_blank"
><img
class=
"my_header_icon"
src=
"https://img.shields.io/static/v1?label=精品课程&message=查看&color=pink&style=flat"
></a>
...
...
算法思维系列/双指针技巧.md
浏览文件 @
03ccab91
...
...
@@ -6,6 +6,8 @@
<p
align=
'center'
>
<a
href=
"https://github.com/labuladong/fucking-algorithm"
target=
"view_window"
><img
alt=
"GitHub"
src=
"https://img.shields.io/github/stars/labuladong/fucking-algorithm?label=Stars&style=flat-square&logo=GitHub"
></a>
<a
href=
"https://appktavsiei5995.pc.xiaoe-tech.com/index"
target=
"_blank"
><img
class=
"my_header_icon"
src=
"https://img.shields.io/static/v1?label=精品课程&message=查看&color=pink&style=flat"
></a>
...
...
算法思维系列/回溯算法详解修订版.md
浏览文件 @
03ccab91
...
...
@@ -4,6 +4,8 @@
<p
align=
'center'
>
<a
href=
"https://github.com/labuladong/fucking-algorithm"
target=
"view_window"
><img
alt=
"GitHub"
src=
"https://img.shields.io/github/stars/labuladong/fucking-algorithm?label=Stars&style=flat-square&logo=GitHub"
></a>
<a
href=
"https://appktavsiei5995.pc.xiaoe-tech.com/index"
target=
"_blank"
><img
class=
"my_header_icon"
src=
"https://img.shields.io/static/v1?label=精品课程&message=查看&color=pink&style=flat"
></a>
...
...
算法思维系列/字符串乘法.md
浏览文件 @
03ccab91
...
...
@@ -4,6 +4,8 @@
<p
align=
'center'
>
<a
href=
"https://github.com/labuladong/fucking-algorithm"
target=
"view_window"
><img
alt=
"GitHub"
src=
"https://img.shields.io/github/stars/labuladong/fucking-algorithm?label=Stars&style=flat-square&logo=GitHub"
></a>
<a
href=
"https://appktavsiei5995.pc.xiaoe-tech.com/index"
target=
"_blank"
><img
class=
"my_header_icon"
src=
"https://img.shields.io/static/v1?label=精品课程&message=查看&color=pink&style=flat"
></a>
...
...
算法思维系列/烧饼排序.md
浏览文件 @
03ccab91
...
...
@@ -4,6 +4,8 @@
<p
align=
'center'
>
<a
href=
"https://github.com/labuladong/fucking-algorithm"
target=
"view_window"
><img
alt=
"GitHub"
src=
"https://img.shields.io/github/stars/labuladong/fucking-algorithm?label=Stars&style=flat-square&logo=GitHub"
></a>
<a
href=
"https://appktavsiei5995.pc.xiaoe-tech.com/index"
target=
"_blank"
><img
class=
"my_header_icon"
src=
"https://img.shields.io/static/v1?label=精品课程&message=查看&color=pink&style=flat"
></a>
...
...
高频面试系列/LRU算法.md
浏览文件 @
03ccab91
...
...
@@ -342,7 +342,7 @@ class LRUCache {
}
```
至此,LRU 算法就没有什么神秘的了。
至此,LRU 算法就没有什么神秘的了。
更多数据结构设计相关的题目参见
[
数据结构设计经典习题
](
https://appktavsiei5995.pc.xiaoe-tech.com/detail/i_6312b9e5e4b0eca59c2b7e93/1
)
。
接下来可阅读:
...
...
高频面试系列/子集排列组合.md
浏览文件 @
03ccab91
...
...
@@ -4,6 +4,8 @@
<p
align=
'center'
>
<a
href=
"https://github.com/labuladong/fucking-algorithm"
target=
"view_window"
><img
alt=
"GitHub"
src=
"https://img.shields.io/github/stars/labuladong/fucking-algorithm?label=Stars&style=flat-square&logo=GitHub"
></a>
<a
href=
"https://appktavsiei5995.pc.xiaoe-tech.com/index"
target=
"_blank"
><img
class=
"my_header_icon"
src=
"https://img.shields.io/static/v1?label=精品课程&message=查看&color=pink&style=flat"
></a>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录