Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Sep 8, 2023
1 parent 96d1c36 commit 4a1ca18
Show file tree
Hide file tree
Showing 68 changed files with 58 additions and 451 deletions.
27 changes: 14 additions & 13 deletions code/algorithm/142.环形链表-ii.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,23 @@
var detectCycle = function (head) {
let fast = head;
let slow = head;
while (fast && fast.next) {
fast = fast.next.next;
slow = slow.next;
// 快慢指针重合
if (slow === fast) {
// 从链表首节点开始

while(fast && fast.next) {
fast = fast.next.next
slow = slow.next

if (fast === slow) {
let index = head;
let index1 = fast;
// 从相交点开始
let index2 = head;
while (index1 !== index2) {
index1 = index1.next;
index2 = index2.next;

while(index !== index1) {
index = index.next
index1 = index1.next
}
return index2;

return index
}
}
return null;
return null
};
// @lc code=end
4 changes: 2 additions & 2 deletions src/.vitepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export const nav = [
{
text: '前端工程化',
link: '/frontend-engineering/'
}
},
{ text: '前端面经汇总', link: '/interview/' }
]
},
{
Expand All @@ -34,7 +35,6 @@ export const nav = [
{ text: '后端开发', link: '/backend/' },
{ text: '开发工具', link: '/tools/' },
{ text: '随笔', link: '/informal/' },
{ text: '面经', link: '/interview/' },
{ text: 'Rust', link: '/rust-learn/' },
{ text: '留言板', link: '/comment/' }
];
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
order: 1
---
# 一个简单调度器的实现
# React的调度器怎么实现


```js
Expand Down
4 changes: 0 additions & 4 deletions src/frontend-advanced/React/React面试题/index.md

This file was deleted.

File renamed without changes.
File renamed without changes.
23 changes: 18 additions & 5 deletions src/frontend-basic/html/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
---
icon: html
index: false
---
# HTML

123
## 1. Doctype 作用

DOCTYPE 是用来声明文档类型和 DTD 规范的。 `<!DOCTYPE html>`声明位于 HTML 文档中的第一行,不是一个 HTML 标签,处于 html 标签之前。告知浏览器的解析器用什么文档标准解析这个文档。DOCTYPE 不存在或格式不正确会导致文档以兼容模式呈现。

## 2. 对 HTML 语义化的理解

语义化的优点如下:

- 有利于 SEO
- 增强了可读性,便于团队的开发与维护
- 无障碍阅读

## 3. script 标签中 defer 和 async 的区别

默认会下载资源,等资源下载完成后再执行代码

**defer:** 遇到 script 标签,直接下载,等待 HTML 解析完成之后,再执行脚本
**async:** 遇到 script 标签,直接下载,不阻塞 HTML 解析,当下载完成后,直接执行,可能会阻塞部分 HTML 解析
20 changes: 0 additions & 20 deletions src/frontend-basic/html/面试题.md

This file was deleted.

File renamed without changes.
5 changes: 4 additions & 1 deletion src/informal/每日学习.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ var removeElements = function (head, val) {

4. 算法:环形链表

5. 算法:相交链表
5. 算法:相交链表

## 2023-09-08
1. 环形链表 II
140 changes: 0 additions & 140 deletions src/interview/1. 字节跳动前端面经.md

This file was deleted.

Loading

0 comments on commit 4a1ca18

Please sign in to comment.