# hello-algorithm **Repository Path**: williamjava/hello-algorithm ## Basic Information - **Project Name**: hello-algorithm - **Description**: 🌍「算法面试+算法知识」针对小白的算法训练 | 还包括:1、阿里、字节、滴滴 百篇大厂面经汇总 2、千本开源电子书 3、百张思维导图 (右侧来个 star 吧 🌹,English version supported) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2021-08-28 - **Last Updated**: 2022-05-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 简介 English version repo and Gitbook is on [english branch](https://github.com/geekxh/hello-algorithm/tree/english) > ### **小浩算法是一套针对小白的完整的算法训练流程!** > > css > Statr > Statr > > 目前共包括以下几个步骤: > - 算法基础知识 > - 高频面试题解(图解) > - 算法视野扩展 > > [目前已支持 PDF 下载](https://www.geekxh.com/0.0.%E5%AD%A6%E4%B9%A0%E9%A1%BB%E7%9F%A5/03.html?3pVd)
##### [点击下载本项目全部内容 提取码:【8f8b】 包括:1、我写的图解算法题典 2、千本开源电子书 3、百张思维导图 4、BAT/TMD 大厂面经 (如果链接失效,上方扫码回复即可)](https://www.geekxh.com/github_click.html?6072) #### 本项目还包括 I: > 千本开源电子书覆盖了你在IT行业发展可以用到的大部分资料,百张思维导图按照专题对各类计算机知识进行了整合。**由于文件过大,建议通过上方扫码,回复【999】获取** - 📚 [一千本开源电子书](https://github.com/geekxh/hello-algorithm/tree/master/%E6%B8%85%E6%99%B0%E7%89%88%E7%94%B5%E5%AD%90%E4%B9%A61000%E6%9C%AC) - 🐒 [百张思维导图集锦](https://github.com/geekxh/hello-algorithm/tree/master/%E8%B6%85%E6%B8%85%E6%80%9D%E7%BB%B4%E5%AF%BC%E5%9B%BE100%E5%BC%A0) #### 本项目还包括 II: > 大厂面经汇总覆盖了阿里、京东、华为、字节、滴滴、百度、美团、腾讯 等公司的面试题,按照 公司/专题 两个维度对面试题进行了整合。**由于文件过大,建议通过上方扫码,回复【面经】获取** | 🚀 | 🚀 | 🚀 | 🚀 | 🚀 | 🚀 | | :--- | :--- | :--- | :--- | :---| :--- | | [阿里篇](https://github.com/geekxh/hello-algorithm/blob/master/%E5%A4%A7%E5%8E%82%E9%9D%A2%E7%BB%8F%E6%B1%87%E6%80%BB100%E7%AF%87/%E9%98%BF%E9%87%8C%E7%AF%87.zip) | [京东篇](https://github.com/geekxh/hello-algorithm/blob/master/%E5%A4%A7%E5%8E%82%E9%9D%A2%E7%BB%8F%E6%B1%87%E6%80%BB100%E7%AF%87/%E4%BA%AC%E4%B8%9C%E7%AF%87.zip) | [华为篇](https://github.com/geekxh/hello-algorithm/blob/master/%E5%A4%A7%E5%8E%82%E9%9D%A2%E7%BB%8F%E6%B1%87%E6%80%BB100%E7%AF%87/%E5%8D%8E%E4%B8%BA%E7%AF%87.zip) | [字节篇](https://github.com/geekxh/hello-algorithm/blob/master/%E5%A4%A7%E5%8E%82%E9%9D%A2%E7%BB%8F%E6%B1%87%E6%80%BB100%E7%AF%87/%E5%A4%B4%E6%9D%A1%E7%AF%87.zip) | [滴滴篇](https://github.com/geekxh/hello-algorithm/blob/master/%E5%A4%A7%E5%8E%82%E9%9D%A2%E7%BB%8F%E6%B1%87%E6%80%BB100%E7%AF%87/%E6%BB%B4%E6%BB%B4%E7%AF%87.zip) | [百度篇](https://github.com/geekxh/hello-algorithm/blob/master/%E5%A4%A7%E5%8E%82%E9%9D%A2%E7%BB%8F%E6%B1%87%E6%80%BB100%E7%AF%87/%E7%99%BE%E5%BA%A6%E7%AF%87.zip) | | [百度篇](https://github.com/geekxh/hello-algorithm/blob/master/%E5%A4%A7%E5%8E%82%E9%9D%A2%E7%BB%8F%E6%B1%87%E6%80%BB100%E7%AF%87/%E7%99%BE%E5%BA%A6%E7%AF%87.zip) | [美团篇](https://github.com/geekxh/hello-algorithm/blob/master/%E5%A4%A7%E5%8E%82%E9%9D%A2%E7%BB%8F%E6%B1%87%E6%80%BB100%E7%AF%87/%E7%BE%8E%E5%9B%A2%E7%AF%87.zip) | [腾讯篇](https://github.com/geekxh/hello-algorithm/blob/master/%E5%A4%A7%E5%8E%82%E9%9D%A2%E7%BB%8F%E6%B1%87%E6%80%BB100%E7%AF%87/%E8%85%BE%E8%AE%AF%E7%AF%87.zip) | [BAT汇总](https://github.com/geekxh/hello-algorithm/blob/master/%E5%A4%A7%E5%8E%82%E9%9D%A2%E7%BB%8F%E6%B1%87%E6%80%BB100%E7%AF%87/BAT%E9%9D%A2%E8%AF%95%E5%B8%B8%E9%97%AE80%E9%A2%98.zip) ### 使用指南 1、因为本教程完全免费,但现在被一些不良商家拿去卖钱, 所以我需要你先帮我点一个 star ,助力原创,防止更多人上当受骗,也顺便支持我一下。 2、算法训练包括三部分:① 算法知识基础 ② 图解算法题典 ③ 算法知识扩展 3、如果是以面试为目的,可以直接对第二部分进行学习。如果基础薄弱,建议从第一部分进行学习。第三部分为专题学习,包含大部分算法资料。 4、对于其中题目有疑惑,可以加入我们的万人刷题群,群里可内推 BAT。扫下面这只熊,回复【进群】即可。

5、当然,也许你就想加我的私人微信: [个人名片](https://www.geekxh.com/contact.jpeg) PS:该项目包括了你在 IT 行业发展可以用到的绝大部分资料。但我希望大家不要当收藏党,找到适合自己的才重要。 ### 正文 ### PART I:算法知识基础 ### PART II:图解算法题典 - [开始学习](http://www.geekxh.com) - [阅读指南](http://www.geekxh.com/c99/hello.html) - 数组 - [01.最长公共前缀(14)](http://www.geekxh.com/1.0.数组系列/002.html) - [02.买卖股票的最佳时机(122)](http://www.geekxh.com/1.0.数组系列/003.html) - [03.旋转数组(189)](http://www.geekxh.com/1.0.数组系列/004.html) - [04.原地删除(27)](http://www.geekxh.com/1.0.数组系列/005.html) - [05.加一(66)](http://www.geekxh.com/1.0.数组系列/006.html) - [06.两数之和(1)](http://www.geekxh.com/1.0.数组系列/007.html) - [07.三数之和(15)](http://www.geekxh.com/1.0.数组系列/008.html) - [08.Z字形变换(6)](http://www.geekxh.com/1.0.数组系列/009.html) - 链表 - [01.删除链表倒数第N个节点(19)](http://www.geekxh.com/1.1.链表系列/101.html) - [02.合并两个有序链表(21)](http://www.geekxh.com/1.1.链表系列/102.html) - [03.环形链表(141)](http://www.geekxh.com/1.1.链表系列/103.html) - [04.两数相加(2)](http://www.geekxh.com/1.1.链表系列/104.html) - 动态规划 - [01.爬楼梯(70)](http://www.geekxh.com/1.2.动态规划系列/201.html) - [02.最大子序和(53)](http://www.geekxh.com/1.2.动态规划系列/202.html) - [03.最长上升子序列(300)](http://www.geekxh.com/1.2.动态规划系列/203.html) - [04.三角形最小路径和(120)](http://www.geekxh.com/1.2.动态规划系列/204.html) - [05.最小路径和(64)](http://www.geekxh.com/1.2.动态规划系列/205.html) - [06.打家劫舍(198)](http://www.geekxh.com/1.2.动态规划系列/206.html) - 字符串 - [01.反转字符串(344)](http://www.geekxh.com/1.3.字符串系列/301.html) - [02.字符串中的第一个唯一字符(387)](http://www.geekxh.com/1.3.字符串系列/302.html) - [03.实现 Sunday 匹配](http://www.geekxh.com/1.3.字符串系列/303.html) - [04.大数打印](http://www.geekxh.com/1.3.字符串系列/304.html) - [05.验证回文串(125)](http://www.geekxh.com/1.3.字符串系列/305.html) - [06.KMP 精讲](http://www.geekxh.com/1.3.字符串系列/306.html) - [07.旋转字符串(796)](http://www.geekxh.com/1.3.字符串系列/307.html) - [08.最后一个单词的长度(58)](http://www.geekxh.com/1.3.字符串系列/308.html) - 二叉树 - [01.最大深度与DFS(104)](http://www.geekxh.com/1.4.二叉树系列/401.html) - [02.层次遍历与BFS(102)](http://www.geekxh.com/1.4.二叉树系列/402.html) - [03.BST与其验证(98)](http://www.geekxh.com/1.4.二叉树系列/403.html) - [04.BST 的查找(700)](http://www.geekxh.com/1.4.二叉树系列/404.html) - [05.BST 的删除(450)](http://www.geekxh.com/1.4.二叉树系列/405.html) - [06.平衡二叉树(110)](http://www.geekxh.com/1.4.二叉树系列/406.html) - [07.完全二叉树(222)](http://www.geekxh.com/1.4.二叉树系列/407.html) - [08.二叉树的剪枝(814)](http://www.geekxh.com/1.4.二叉树系列/408.html) - 滑动窗口 - [01.滑动窗口最大值(239)](http://www.geekxh.com/1.5.滑动窗口系列/501.html) - [02.无重复字符的最长子串(3)](http://www.geekxh.com/1.5.滑动窗口系列/502.html) - [03.找到字符串中所有字母异位词(438)](http://www.geekxh.com/1.5.滑动窗口系列/503.html) - [04.和为s的连续正数序列](http://www.geekxh.com/1.5.滑动窗口系列/504.html) - 博弈论 - [01.囚徒困境](http://www.geekxh.com/1.6.博弈论系列/601.html) - [02.辛普森悖论](http://www.geekxh.com/1.6.博弈论系列/602.html) - [03.红眼睛和蓝眼睛](http://www.geekxh.com/1.6.博弈论系列/603.html) - [04.海盗分金币](http://www.geekxh.com/1.6.博弈论系列/604.html) - [05.智猪博弈](http://www.geekxh.com/1.6.博弈论系列/605.html) - [06.生男生女的问题](http://www.geekxh.com/1.6.博弈论系列/606.html) - [07.硬币问题](http://www.geekxh.com/1.6.博弈论系列/607.html) - [08.画圈圈的问题](http://www.geekxh.com/1.6.博弈论系列/608.html) - [09.巧克力问题](http://www.geekxh.com/1.6.博弈论系列/609.html) - [10.大鱼和小鱼的问题](http://www.geekxh.com/1.6.博弈论系列/610.html) - 位运算 - [01.使用位运算求和](http://www.geekxh.com/1.8.位运算系列/801.html) - [02.2的幂(231)](http://www.geekxh.com/1.8.位运算系列/802.html) - [03.返回一个数二进制中1的个数](http://www.geekxh.com/1.8.位运算系列/803.html) - [04.只出现一次的数字](http://www.geekxh.com/1.8.位运算系列/804.html) - [05.只出现一次的数字Ⅱ](http://www.geekxh.com/1.8.位运算系列/805.html) - [06.缺失数字(268)](http://www.geekxh.com/1.8.位运算系列/806.html) - 二分法 - [01.爱吃香蕉的珂珂(875)](http://www.geekxh.com/1.9.二分法系列/901.html) - [02.x的平方根(69)](http://www.geekxh.com/1.9.二分法系列/902.html) - [03.x的平方根(69)](http://www.geekxh.com/1.9.二分法系列/903.html) - [04.旋转排序数组中的最小值Ⅰ(153)](http://www.geekxh.com/1.9.二分法系列/904.html) - [05.旋转排序数组中的最小值Ⅱ(154)](http://www.geekxh.com/1.9.二分法系列/905.html) - [06.供暖器(475)](http://www.geekxh.com/1.9.二分法系列/906.html) - 其他高频面试题目 - [01.螺旋矩阵(54)](http://www.geekxh.com/1.99.其他补充题目/01.html) - [02.只有两个键的键盘(650)](http://www.geekxh.com/1.99.其他补充题目/02.html) - [03.24点游戏(679)](http://www.geekxh.com/1.99.其他补充题目/03.html) - [04.飞机座位分配概率(1227)](http://www.geekxh.com/1.99.其他补充题目/04.html) - [05.水分子的产生](http://www.geekxh.com/1.99.其他补充题目/05.html) - [06.救生艇(881)](http://www.geekxh.com/1.99.其他补充题目/06.html) - [07.救生艇(881)](http://www.geekxh.com/1.99.其他补充题目/07.html) - [08.灯泡开关(319)](http://www.geekxh.com/1.99.其他补充题目/08.html) - [09.三门问题](http://www.geekxh.com/1.99.其他补充题目/09.html) - [10.猜数字游戏(299)](http://www.geekxh.com/1.99.其他补充题目/10.html) - [11.LRU缓存机制(146)](http://www.geekxh.com/1.99.其他补充题目/11.html) - [12.最小的k个数](http://www.geekxh.com/1.99.其他补充题目/12.html) - [13.不同路径](http://www.geekxh.com/1.99.其他补充题目/13.html) - [14.不同路径-障碍物](http://www.geekxh.com/1.99.其他补充题目/14.html) - [15.连续n个数的和](http://www.geekxh.com/1.99.其他补充题目/15.html) - [16.盛水最多的容器](http://www.geekxh.com/1.99.其他补充题目/16.html) - [17.扑克牌中的顺子容器](http://www.geekxh.com/1.99.其他补充题目/17.html) - [18.整数拆分(343)](http://www.geekxh.com/1.99.其他补充题目/18.html) - [19.移动石子到连续(1033)](http://www.geekxh.com/1.99.其他补充题目/19.html) - [20.Nim游戏(292)](http://www.geekxh.com/1.99.其他补充题目/20.html) - [21.寻找两个正序数组的中位数(4)](http://www.geekxh.com/1.99.其他补充题目/21.html) - [22.第k个最大元素(215)](http://www.geekxh.com/1.99.其他补充题目/22.html) - [23.镜面反射(858)](http://www.geekxh.com/1.99.其他补充题目/23.html) - [25.整数转罗马数字(12)](http://www.geekxh.com/1.99.其他补充题目/25.html) - [26.荷兰国旗问题](http://www.geekxh.com/1.99.其他补充题目/26.html) - [27.六九问题](http://www.geekxh.com/1.99.其他补充题目/27.html) - [28.有效的数独](http://www.geekxh.com/1.99.其他补充题目/28.html) - [29.费米估算](http://www.geekxh.com/1.99.其他补充题目/29.html) - [30.分发饼干](http://www.geekxh.com/1.99.其他补充题目/30.html) - [31.生命游戏(289)](http://www.geekxh.com/1.99.其他补充题目/31.html) - [32.搜索二维矩阵(74)](http://www.geekxh.com/1.99.其他补充题目/32.html) - [33.子集(78)](http://www.geekxh.com/1.99.其他补充题目/33.html) - [34.面试中的智力题](http://www.geekxh.com/1.99.其他补充题目/34.html) - [35.旋转图像(48)](http://www.geekxh.com/1.99.其他补充题目/51.html) ### PART III:算法视野扩展 | 🙉 | 🙉 | 🙉 | 🙉 | | :--- | :--- | :--- | :--- | | [Bresenham直线算法与画圆算法](https://github.com/geekxh/hello-algorithm/blob/feature/1118/%E5%B0%8F%E6%B5%A9%E7%AE%97%E6%B3%95%E8%AE%AD%E7%BB%83/PART_3_%E7%AE%97%E6%B3%95%E8%A7%86%E9%87%8E%E6%89%A9%E5%B1%95/Bresenham%E7%9B%B4%E7%BA%BF%E7%AE%97%E6%B3%95%E4%B8%8E%E7%94%BB%E5%9C%86%E7%AE%97%E6%B3%95.doc) | [C语言经典算法100例](https://github.com/geekxh/hello-algorithm/blob/feature/1118/%E5%B0%8F%E6%B5%A9%E7%AE%97%E6%B3%95%E8%AE%AD%E7%BB%83/PART_3_%E7%AE%97%E6%B3%95%E8%A7%86%E9%87%8E%E6%89%A9%E5%B1%95/C%E8%AF%AD%E8%A8%80%E7%BB%8F%E5%85%B8%E7%AE%97%E6%B3%95100%E4%BE%8B.doc) | [决策树和随机森林](https://github.com/geekxh/hello-algorithm/blob/feature/1118/%E5%B0%8F%E6%B5%A9%E7%AE%97%E6%B3%95%E8%AE%AD%E7%BB%83/PART_3_%E7%AE%97%E6%B3%95%E8%A7%86%E9%87%8E%E6%89%A9%E5%B1%95/%E5%86%B3%E7%AD%96%E6%A0%91%E5%92%8C%E9%9A%8F%E6%9C%BA%E6%A3%AE%E6%9E%97.zip) | [常用推荐算法](https://github.com/geekxh/hello-algorithm/blob/feature/1118/%E5%B0%8F%E6%B5%A9%E7%AE%97%E6%B3%95%E8%AE%AD%E7%BB%83/PART_3_%E7%AE%97%E6%B3%95%E8%A7%86%E9%87%8E%E6%89%A9%E5%B1%95/%E5%B8%B8%E7%94%A8%E6%8E%A8%E8%8D%90%E7%AE%97%E6%B3%95.pdf) | | [微软面试100题系列](https://github.com/geekxh/hello-algorithm/blob/feature/1118/%E5%B0%8F%E6%B5%A9%E7%AE%97%E6%B3%95%E8%AE%AD%E7%BB%83/PART_3_%E7%AE%97%E6%B3%95%E8%A7%86%E9%87%8E%E6%89%A9%E5%B1%95/%E5%BE%AE%E8%BD%AF%E9%9D%A2%E8%AF%95100%E9%A2%98%E7%B3%BB%E5%88%97.zip) | [最小生成树算法讲解](https://github.com/geekxh/hello-algorithm/blob/feature/1118/%E5%B0%8F%E6%B5%A9%E7%AE%97%E6%B3%95%E8%AE%AD%E7%BB%83/PART_3_%E7%AE%97%E6%B3%95%E8%A7%86%E9%87%8E%E6%89%A9%E5%B1%95/%E6%9C%80%E5%B0%8F%E7%94%9F%E6%88%90%E6%A0%91%E7%AE%97%E6%B3%95%E8%AE%B2%E8%A7%A3.ppt) | [魔兽世界平衡算法](https://github.com/geekxh/hello-algorithm/blob/feature/1118/%E5%B0%8F%E6%B5%A9%E7%AE%97%E6%B3%95%E8%AE%AD%E7%BB%83/PART_3_%E7%AE%97%E6%B3%95%E8%A7%86%E9%87%8E%E6%89%A9%E5%B1%95/%E9%AD%94%E5%85%BD%E4%B8%96%E7%95%8C%E5%B9%B3%E8%A1%A1%E7%AE%97%E6%B3%95.zip) | [背包九讲](https://github.com/geekxh/hello-algorithm/blob/master/%E5%B0%8F%E6%B5%A9%E7%AE%97%E6%B3%95%E8%AE%AD%E7%BB%83/PART_3_%E7%AE%97%E6%B3%95%E8%A7%86%E9%87%8E%E6%89%A9%E5%B1%95/%E8%83%8C%E5%8C%85%E4%B9%9D%E8%AE%B2-2.0.zip) ### License 本项目除部分引用开源技术文档的内容外,大部分为本人原创!欢迎任何以学习为目的的传播,但未授权任何平台进行转载!