├── README.md ├── Saved Pictures ├── b28e1d1b24eab4.jpg ├── 18cb732d8e8a0ee821dfa63ed1759354.jpg ├── 3714a37f2db6d6534623139ee88e609c.jpg ├── 5a3def7e43582363ec19e53487803cc3.jpg └── b814b0d028bd398c909cda1db76e8027.jpg ├── 计算ascll码.html ├── 继承.html ├── 矩阵的转置运算.html ├── 判断闰年.html ├── 嵌套if-slse.html ├── switch语句的译码器.html ├── .gitignore ├── async配合transition.html ├── async加载图片.html ├── 路由me.html ├── 位运算.html └── 路由.html /README.md: -------------------------------------------------------------------------------- 1 | # Algorithm 2 | some Algorithm in myself 3 | ### 个人整理的一些前端常见算法题 4 | -------------------------------------------------------------------------------- /Saved Pictures/b28e1d1b24eab4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snk1004/Algorithm/HEAD/Saved Pictures/b28e1d1b24eab4.jpg -------------------------------------------------------------------------------- /Saved Pictures/18cb732d8e8a0ee821dfa63ed1759354.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snk1004/Algorithm/HEAD/Saved Pictures/18cb732d8e8a0ee821dfa63ed1759354.jpg -------------------------------------------------------------------------------- /Saved Pictures/3714a37f2db6d6534623139ee88e609c.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snk1004/Algorithm/HEAD/Saved Pictures/3714a37f2db6d6534623139ee88e609c.jpg -------------------------------------------------------------------------------- /Saved Pictures/5a3def7e43582363ec19e53487803cc3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snk1004/Algorithm/HEAD/Saved Pictures/5a3def7e43582363ec19e53487803cc3.jpg -------------------------------------------------------------------------------- /Saved Pictures/b814b0d028bd398c909cda1db76e8027.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snk1004/Algorithm/HEAD/Saved Pictures/b814b0d028bd398c909cda1db76e8027.jpg -------------------------------------------------------------------------------- /计算ascll码.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 11 | 12 | 20 | -------------------------------------------------------------------------------- /继承.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Document 9 | 10 | 11 | 12 | 13 | 14 | 24 | 25 | -------------------------------------------------------------------------------- /矩阵的转置运算.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Document 9 | 10 | 11 | 12 | 13 | 14 | 34 | 35 | -------------------------------------------------------------------------------- /判断闰年.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Document 9 | 10 | 11 | 12 | 13 | 14 | 30 | 31 | -------------------------------------------------------------------------------- /嵌套if-slse.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 |

11 | 12 | 31 | -------------------------------------------------------------------------------- /switch语句的译码器.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 11 | 12 | 32 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | *.pid.lock 13 | 14 | # Directory for instrumented libs generated by jscoverage/JSCover 15 | lib-cov 16 | 17 | # Coverage directory used by tools like istanbul 18 | coverage 19 | 20 | # nyc test coverage 21 | .nyc_output 22 | 23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 24 | .grunt 25 | 26 | # Bower dependency directory (https://bower.io/) 27 | bower_components 28 | 29 | # node-waf configuration 30 | .lock-wscript 31 | 32 | # Compiled binary addons (https://nodejs.org/api/addons.html) 33 | build/Release 34 | 35 | # Dependency directories 36 | node_modules/ 37 | jspm_packages/ 38 | 39 | # TypeScript v1 declaration files 40 | typings/ 41 | 42 | # Optional npm cache directory 43 | .npm 44 | 45 | # Optional eslint cache 46 | .eslintcache 47 | 48 | # Optional REPL history 49 | .node_repl_history 50 | 51 | # Output of 'npm pack' 52 | *.tgz 53 | 54 | # Yarn Integrity file 55 | .yarn-integrity 56 | 57 | # dotenv environment variables file 58 | .env 59 | 60 | # next.js build output 61 | .next 62 | -------------------------------------------------------------------------------- /async配合transition.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Document 9 | 18 | 19 | 20 | 21 |
22 | 23 | 51 | 52 | -------------------------------------------------------------------------------- /async加载图片.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Document 9 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 |
22 | 23 | 56 | 57 | -------------------------------------------------------------------------------- /路由me.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 原生实现hash和browser两种路由模式 8 | 9 | 10 |
11 | 主页 12 | 新闻 13 | 团队 14 | 关于 15 |
16 |
17 | 50 | 51 | -------------------------------------------------------------------------------- /位运算.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Document 9 | 12 | 13 | 14 | 15 |

× 16 |
4.9 巧用位运算 17 | 用位运算操作实现两个整数的交换。例如x1=5,x2=10;交换后x1=10,x2=5。

18 | 19 | 83 | 84 | -------------------------------------------------------------------------------- /路由.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 原生实现hash和browser两种路由模式 8 | 9 | 10 |
11 | 主页 12 | 新闻 13 | 团队 14 | 关于 15 |
16 |
17 | 18 | 136 | 137 | --------------------------------------------------------------------------------