Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

akun2014/algorithm

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

334 Commits
334 Commits
 
 
 
 
 
 
 
 

Repository files navigation

初学者友好的算法题目解答

算法解答部分的代码注释细致到每一行

希望能为初学者提供最大的便利去理解每道题目和解法

欢迎网友为本项目做贡献,提交你的解题方法和详细解释


提交答案步骤

各位Hollis的朋友们,在向本项目提交您的答案详解时,请阅读以下内容


0. 从题目列表或者leetCode题库选择题目

  1. 从本项目的题目列表中选择,每日更新,来自leetCode免费公开题库

https://github.com/hollischuang/algorithm/blob/master/daily.md

  1. 或者直接从leetCode免费题库中自行选择

https://leetcode-cn.com/problemset/all/


1. 为运行成功的代码写出详细注释

  • 可以提交一个精简版的答案,仅包括代码和详细注释
精简版答案包括:

1) 能够在leetCode上成功提交的代码  

2) 代码详细注释  

3) 参考或引用的链接

精简版答案示例

精简版答案示例下载地址:

https://github.com/hollischuang/algorithm/blob/master/leetcode/sample/concise.md


  • 或者提交一个详尽版的答案,参照leetCode官方题解样式
详尽版答案包括:

1) 能够在leetCode上成功提交的代码  

2) 代码详细注释  

3) 复杂度分析:包括时间复杂度和空间复杂度  

4) 方法和思路概述

5) 参考或引用的链接

详尽版答案示例

详尽版示例下载地址:

https://github.com/hollischuang/algorithm/blob/master/leetcode/sample/full.md

  • 引用和参考:

不强制原创,如果提交的答案有借鉴、转载、翻译,

请务必注明引用出处  

2. 找到题目所在目录,新建md文件并提交,命名规则 "英文或拼音昵称.md"

  1. 在/Interview/algorithm/leetcode/文件夹下找到题目文件夹,如
/Interview/algorithm/leetcode/141-LinkedListCycle

如果项目里还没有该题的文件夹,请按照驼峰式命名法新建"题号-题目名称.md",题号小于百位数请加0  

比如题号是24的swap-nodes-in-pairs,命名后如下

/Interview/algorithm/leetcode/024-SwapNodesInPairs
  1. 文件名请务必使用英文或拼音:
比如你的昵称叫offical, 文件就命名为 official.md  
  1. 建好后完整路径和名称如下所示:
/Interview/algorithm/leetcode/141-LinkedListCycle/offical.md  
  1. 在git上提交你的文件,管理员审核通过后大家就能看到你的答案并和你讨论了

参考资料

  1. leetCode中文题库

  2. 覃超《算法面试通关40讲》课件

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.