【文件属性】:
文件名称:CodingPractice
文件大小:120KB
文件格式:ZIP
更新时间:2021-03-21 14:24:43
Java
编码实践
将Leetcode问题分类为模式:
两个指针
前/末端指针
[LC] 11.装满水的容器
[LC] 15. 3Sum
[LC] 16. 3Sum最近
在什么情况下应何时向左移动指针以及何时向右移动指针要小心
[LC] 19.从列表末尾删除第N个节点
当n等于列表的大小,并且n仅为1时,请注意转角情况
[LC] 42.困雨
当相应的墙较低时,同时移动前端和末端指针。
[LC] 121.买卖股票的最佳时间
origin: 3 2 6 5 0 3
if we sell at this point, what would be the lowest buy price
left: 3 2 2 2 0 0
if we buy at this point, what would be the highest sell price
right: 6 6 6 5 3 3
从左
【文件预览】:
CodingPractice-master
----.gitignore(672B)
----README.md(30KB)
----LeetCode()
--------2021()
--------before-2021()
----Hackerrank()
--------src()