Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ainevsia committed Jul 12, 2023
1 parent f9c9e23 commit 2fa4082
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 6 deletions.
4 changes: 2 additions & 2 deletions notes/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Summary

- [Day 1](./day1.md)
- [704. 二分查找](./lc704.md)
- [27. 移除元素](./lc27.md)
- [704. 二分查找](./day1/lc704.md)
- [27. 移除元素](./day1/lc27.md)
38 changes: 36 additions & 2 deletions notes/src/day1.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
# Chapter 1
# 第一章 数组part01


## 今日任务

数组理论基础,704. 二分查找,27. 移除元素

文章链接:https://programmercarl.com/%E6%95%B0%E7%BB%84%E7%90%86%E8%AE%BA%E5%9F%BA%E7%A1%80.html

题目建议: 了解一下数组基础,以及数组的内存空间地址,数组也没那么简单。

### 704. 二分查找

题目建议: 大家能把 704 掌握就可以,35.搜索插入位置 和 34. 在排序数组中查找元素的第一个和最后一个位置 ,如果有时间就去看一下,没时间可以先不看,二刷的时候在看。

先把 704写熟练,要熟悉 根据 左闭右开,左闭右闭 两种区间规则 写出来的二分法。

题目链接:https://leetcode.cn/problems/binary-search/

文章讲解:https://programmercarl.com/0704.%E4%BA%8C%E5%88%86%E6%9F%A5%E6%89%BE.html

视频讲解:https://www.bilibili.com/video/BV1fA4y1o715


### 27. 移除元素

题目建议: 暴力的解法,可以锻炼一下我们的代码实现能力,建议先把暴力写法写一遍。 双指针法 是本题的精髓,今日需要掌握,至于拓展题目可以先不看。

题目链接:https://leetcode.cn/problems/remove-element/

文章讲解:https://programmercarl.com/0027.%E7%A7%BB%E9%99%A4%E5%85%83%E7%B4%A0.html

视频讲解:https://www.bilibili.com/video/BV12A4y1Z7LP




# part-1
File renamed without changes.
2 changes: 0 additions & 2 deletions notes/src/lc704.md → notes/src/day1/lc704.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# 704. 二分查找

what happens ???? 11

## 题目描述

给定一个 n 个元素有序的(升序)整型数组 nums 和一个目标值 target ,写一个函数搜索 nums 中的 target,如果目标值存在返回下标,否则返回 -1。
Expand Down

0 comments on commit 2fa4082

Please sign in to comment.