此repo旨在建立一个共同刷题,学习算法知识的平台,由参与者共同维护,提交算法学习代码和文章,整理wiki等。
-
题目内容主要来源于LeetCode,也可以从LintCode或其他地方选题,题目可以重复,但建议尽量避免重复。
-
题目可以是自己做出也可以是看答案做出,但必须落实在代码中并调试运行通过。
建立一个以编号_题目名称
的文件夹(编号不可重复)在文件夹内建立代码文件编写题解,语言不限。题解注释尽量详细,可分为以下部分
- 问题连接
粘贴问题来源链接
- 问题描述
粘贴问题描述,如果是英文请翻译成中文。
- 例子
粘贴问题输入输入的示例。
- 方法1思路、方法2思路(如有)……
写出解题方法和思路。
- 代码
方法实现代码。
- 测试用例
题解的测试用例。
如果有某些算法概念和数据结构等概念不清晰的,通过搜索查到了相关知识,欢迎一同提交进来供大家学习。请在之前建立的文件夹中建立markdown文件(.md
)文件�编写内容,我也会定期将优秀内容整理成wiki。
可参考代码1_TwoSum
。
使用git的commit和push提交和上传代码。
- 由于是共同维护项目,提交代码前一定要先执行
git pull
拉取代码防止冲突。 - 请一定一定不要使用任何强制提交和推送的指令。
- 无论你的英语水平有多好,请在本项目中使用中文解释问题。算法本生涩,不要让语言成为我们的障碍。
期待我们共同维护好这个小环境,都能从中获得提升。