| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/tree/*name(/*path) |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:453e2fd7-4ecf-844a-2794-56c5e37f0bd7 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | AB18:9E1B2:35833A7:471B138:6B004485 |
| html-safe-nonce | b9022b36f21810e100134dd3d575037eabfb5e1d94d2082a2ca42b5d5436d3fa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjE4OjlFMUIyOjM1ODMzQTc6NDcxQjEzODo2QjAwNDQ4NSIsInZpc2l0b3JfaWQiOiI0MTQ1NTE4NzE4MTE1Mzk4Nzg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 940cf3fb2f804fddc58be5449247a572cefc7b9050503e8ca19d36aa16f67eee |
| hovercard-subject-tag | repository:178221585 |
| github-keyboard-shortcuts | repository,source-code,file-tree,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///files/disambiguate |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/DangoSky/algorithm/tree/master/Algorithm-notes |
| twitter:image | https://opengraph.githubassets.com/f4ccb46a2bcb3702d194a5280bc571d4bfed35e00d1191b74c965064d874a7d6/DangoSky/algorithm |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f4ccb46a2bcb3702d194a5280bc571d4bfed35e00d1191b74c965064d874a7d6/DangoSky/algorithm |
| og:image:alt | 算法和数据结构练习(Leetcode). Contribute to DangoSky/algorithm development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-cache |
| go-import | github.com/DangoSky/algorithm git https://github.com/DangoSky/algorithm.git |
| octolytics-dimension-user_id | 42209399 |
| octolytics-dimension-user_login | DangoSky |
| octolytics-dimension-repository_id | 178221585 |
| octolytics-dimension-repository_nwo | DangoSky/algorithm |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 178221585 |
| octolytics-dimension-repository_network_root_nwo | DangoSky/algorithm |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#start-of-content |
| https://redirect.github.com/ |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FDangoSky%2Falgorithm%2Ftree%2Fmaster%2FAlgorithm-notes |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FDangoSky%2Falgorithm%2Ftree%2Fmaster%2FAlgorithm-notes |
| Sign up | https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Ffiles%2Fdisambiguate&source=header-repo&source_repo=DangoSky%2Falgorithm |
| Reload | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes |
| Reload | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes |
| Reload | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes |
| DangoSky | https://redirect.github.com/DangoSky |
| algorithm | https://redirect.github.com/DangoSky/algorithm |
| Code | https://redirect.github.com/DangoSky/algorithm |
| Issues | https://redirect.github.com/DangoSky/algorithm/issues |
| Pull requests | https://redirect.github.com/DangoSky/algorithm/pulls |
| Actions | https://redirect.github.com/DangoSky/algorithm/actions |
| Projects | https://redirect.github.com/DangoSky/algorithm/projects |
| Security and quality | https://redirect.github.com/DangoSky/algorithm/security |
| Insights | https://redirect.github.com/DangoSky/algorithm/pulse |
| https://redirect.github.com/DangoSky/algorithm |
| algorithm | https://redirect.github.com/DangoSky/algorithm/tree/master |
| History | https://redirect.github.com/DangoSky/algorithm/commits/master/Algorithm-notes |
| https://redirect.github.com/DangoSky/algorithm/commits/master/Algorithm-notes |
| algorithm | https://redirect.github.com/DangoSky/algorithm/tree/master |
| .. | https://redirect.github.com/DangoSky/algorithm/tree/master |
| README.md | https://redirect.github.com/DangoSky/algorithm/blob/master/Algorithm-notes/README.md |
| README.md | https://redirect.github.com/DangoSky/algorithm/blob/master/Algorithm-notes/README.md |
| README.md | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#readme |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#算法思想 |
| 质数判断和筛选 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E8%B4%A8%E6%95%B0%E5%88%A4%E6%96%AD%E5%92%8C%E7%AD%9B%E9%80%89 |
| 二分查找 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E4%BA%8C%E5%88%86%E6%9F%A5%E6%89%BE |
| 十大排序 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%8D%81%E5%A4%A7%E6%8E%92%E5%BA%8F |
| 冒泡排序 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%86%92%E6%B3%A1%E6%8E%92%E5%BA%8F |
| 单向冒泡 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%8D%95%E5%90%91%E5%86%92%E6%B3%A1 |
| 双向冒泡 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%8F%8C%E5%90%91%E5%86%92%E6%B3%A1 |
| 选择排序 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E9%80%89%E6%8B%A9%E6%8E%92%E5%BA%8F |
| 插入排序 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E6%8F%92%E5%85%A5%E6%8E%92%E5%BA%8F |
| 快速排序 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%BF%AB%E9%80%9F%E6%8E%92%E5%BA%8F |
| 快速排序之填坑 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%BF%AB%E9%80%9F%E6%8E%92%E5%BA%8F%E4%B9%8B%E5%A1%AB%E5%9D%91 |
| 快速排序之交换 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%BF%AB%E9%80%9F%E6%8E%92%E5%BA%8F%E4%B9%8B%E4%BA%A4%E6%8D%A2 |
| 归并排序 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%BD%92%E5%B9%B6%E6%8E%92%E5%BA%8F |
| 桶排序 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E6%A1%B6%E6%8E%92%E5%BA%8F |
| 基数排序 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%9F%BA%E6%95%B0%E6%8E%92%E5%BA%8F |
| 计数排序 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E8%AE%A1%E6%95%B0%E6%8E%92%E5%BA%8F |
| 常规计数排序 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%B8%B8%E8%A7%84%E8%AE%A1%E6%95%B0%E6%8E%92%E5%BA%8F |
| 优化计数排序 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E4%BC%98%E5%8C%96%E8%AE%A1%E6%95%B0%E6%8E%92%E5%BA%8F |
| 堆排序 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%A0%86%E6%8E%92%E5%BA%8F |
| 希尔排序 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%B8%8C%E5%B0%94%E6%8E%92%E5%BA%8F |
| 洗牌算法 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E6%B4%97%E7%89%8C%E7%AE%97%E6%B3%95 |
| 二叉树 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E4%BA%8C%E5%8F%89%E6%A0%91 |
| 构造二叉树 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E6%9E%84%E9%80%A0%E4%BA%8C%E5%8F%89%E6%A0%91 |
| 根据先序遍历和中序遍历构造二叉树 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E6%A0%B9%E6%8D%AE%E5%85%88%E5%BA%8F%E9%81%8D%E5%8E%86%E5%92%8C%E4%B8%AD%E5%BA%8F%E9%81%8D%E5%8E%86%E6%9E%84%E9%80%A0%E4%BA%8C%E5%8F%89%E6%A0%91 |
| 根据后序遍历和中序遍历构造二叉树 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E6%A0%B9%E6%8D%AE%E5%90%8E%E5%BA%8F%E9%81%8D%E5%8E%86%E5%92%8C%E4%B8%AD%E5%BA%8F%E9%81%8D%E5%8E%86%E6%9E%84%E9%80%A0%E4%BA%8C%E5%8F%89%E6%A0%91 |
| 遍历二叉树 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E9%81%8D%E5%8E%86%E4%BA%8C%E5%8F%89%E6%A0%91 |
| 先序遍历 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%85%88%E5%BA%8F%E9%81%8D%E5%8E%86 |
| 中序遍历 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E4%B8%AD%E5%BA%8F%E9%81%8D%E5%8E%86 |
| 后序遍历 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%90%8E%E5%BA%8F%E9%81%8D%E5%8E%86 |
| 层序遍历 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E5%B1%82%E5%BA%8F%E9%81%8D%E5%8E%86 |
| 二叉排序树 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#%E4%BA%8C%E5%8F%89%E6%8E%92%E5%BA%8F%E6%A0%91 |
| KMP算法 | https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#KMP%E7%AE%97%E6%B3%95 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#质数判断和筛选 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#二分查找 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#迭代 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#递归 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#使用二分查找排序数组中元素的第一个和最后一个位置 |
| Leetcode 传送门 | https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/ |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#十大排序 |
| 数据结构和算法动态可视化 | https://visualgo.net/en |
| C++版的十大排序 | https://github.com/DangoSky/algorithm/blob/master/DataStructure-homework/Experiment%EF%BC%88C%2B%2B%EF%BC%89/%E5%AE%9E%E9%AA%8C%E5%9B%9B%EF%BC%9A%E6%8E%92%E5%BA%8F%E7%AE%97%E6%B3%95/%E5%8D%81%E5%A4%A7%E6%8E%92%E5%BA%8F.cpp |
| 在这里测试代码 | https://leetcode-cn.com/problems/sort-an-array/ |
| https://camo.githubusercontent.com/242d5c2d462b9367ee5d1733d3aa21fe26acea1723a2c0ee8b33d86a510c4bac/68747470733a2f2f757365722d676f6c642d63646e2e786974752e696f2f323031362f31312f32392f34616264653137343838313764376633356632626638623661303538616134303f696d61676556696577322f302f772f313238302f682f3936302f666f726d61742f776562702f69676e6f72652d6572726f722f31 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#冒泡排序 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#单向冒泡 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#双向冒泡 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#选择排序 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#插入排序 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#快速排序 |
| 算法 3:最常用的排序——快速排序 | https://wiki.jikexueyuan.com/project/easy-learn-algorithm/fast-sort.html |
| 三种快速排序以及快速排序的优化 | https://blog.csdn.net/insistGoGo/article/details/7785038 |
| 数组中的第K个最大元素 | https://leetcode-cn.com/problems/kth-largest-element-in-an-array/ |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#快速排序之填坑 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#快速排序之交换 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#归并排序 |
| 图解排序算法(四)之归并排序 | https://www.cnblogs.com/chengxiao/p/6194356.html |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#桶排序 |
| 拜托,面试别再问我桶排序了!!! | http://zhuanlan.51cto.com/art/201811/586129.htm |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#基数排序 |
| 算法总结系列之五: 基数排序(Radix Sort) | https://www.cnblogs.com/sun/archive/2008/06/26/1230095.html |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#计数排序 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#常规计数排序 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#优化计数排序 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#堆排序 |
| 常见排序算法 - 堆排序 (Heap Sort) | http://bubkoo.com/2014/01/14/sort-algorithm/heap-sort/ |
| 图解排序算法(三)之堆排序 | https://www.cnblogs.com/chengxiao/p/6129630.html |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#希尔排序 |
| 图解排序算法(二)之希尔排序 | https://www.cnblogs.com/chengxiao/p/6104371.html |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#洗牌算法 |
| 洗牌算法 | https://labuladong.gitbook.io/algo/suan-fa-si-wei-xi-lie/xi-pai-suan-fa |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#二叉树 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#构造二叉树 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#根据先序遍历和中序遍历构造二叉树 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#根据后序遍历和中序遍历构造二叉树 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#遍历二叉树 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#先序遍历 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#递归-1 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#迭代-1 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#中序遍历 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#递归-2 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#迭代-2 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#后序遍历 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#递归-3 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#迭代-3 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#层序遍历 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#二叉排序树 |
| https://redirect.github.com/DangoSky/algorithm/tree/master/Algorithm-notes#kmp算法 |
| 测试地址 | https://leetcode-cn.com/problems/implement-strstr/ |
| 阮一峰的网络日志:字符串匹配的KMP算法 | http://www.ruanyifeng.com/blog/2013/05/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm.html |
| KMP 算法 | https://subetter.com/algorithm/kmp-algorithm.html |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |