Skip to content

Commit

Permalink
数据结构与算法
Browse files Browse the repository at this point in the history
  • Loading branch information
lefex committed Feb 28, 2022
1 parent 53ed4ca commit ac6e8f5
Show file tree
Hide file tree
Showing 14 changed files with 118 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dsa/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 数据结构与算法

使用TS实现LeetCode算法

## 参考
8 changes: 8 additions & 0 deletions dsa/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
body {
background-color: #f5f5f5;
margin: 0;
}

h1 {
text-align: center;
}
15 changes: 15 additions & 0 deletions dsa/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./index.css">
<title>数据结构与算法</title>
</head>
<body>
<h1>TS数据结构与算法</h1>
<div id="content"></div>
<script src="./src/tree/index.ts" type="module"></script>
</body>
</html>
5 changes: 5 additions & 0 deletions dsa/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions dsa/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "dom-demo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "vite",
"pm2": "pm2 start node_modules/vite/bin/vite.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"vite": "^2.4.4"
}
}
8 changes: 8 additions & 0 deletions dsa/src/tree/create.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @author 素燕(我有个公众号:素燕)
* @description 创建树,树的数据结构定义
*/

export function createTree() {
console.log('create a tree');
}
3 changes: 3 additions & 0 deletions dsa/src/tree/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#

树在前端中有广泛的定义,比如HTML解析,DOM。
12 changes: 12 additions & 0 deletions dsa/src/tree/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* @author 素燕(我有个公众号:素燕)
* @description 树相关的算法
*/

import { createTree } from "./create"

const createDemo = () => {
createTree();
}

createDemo();
3 changes: 3 additions & 0 deletions empty-demo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 标题

## 参考
8 changes: 8 additions & 0 deletions empty-demo/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
body {
background-color: #f5f5f5;
margin: 0;
}

h1 {
text-align: center;
}
14 changes: 14 additions & 0 deletions empty-demo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./index.css">
<title>Empty-DOM</title>
</head>
<body>
<h1>和素燕一起学前端</h1>
<div>empty demo</div>
</body>
</html>
5 changes: 5 additions & 0 deletions empty-demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions empty-demo/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "dom-demo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "vite",
"pm2": "pm2 start node_modules/vite/bin/vite.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"vite": "^2.4.4"
}
}
Empty file added empty-demo/src/.gitkeep
Empty file.

0 comments on commit ac6e8f5

Please sign in to comment.