Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

向本项目提交答案的步骤,以及内容遵循的格式 #48

Open
bigablecat opened this issue Mar 17, 2019 · 0 comments
Open

向本项目提交答案的步骤,以及内容遵循的格式 #48

bigablecat opened this issue Mar 17, 2019 · 0 comments

Comments

@bigablecat
Copy link
Collaborator

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

提交答案步骤

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


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上提交你的文件,管理员审核通过后大家就能看到你的答案并和你讨论了

@bigablecat bigablecat changed the title 向本项目提交答案的步骤,已经内容遵循的格式 向本项目提交答案的步骤,以及内容遵循的格式 Mar 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant