8000 Merge branch 'master' of github.com:ookcode/Algorithms · windsonxp/Algorithms@f31ac56 · GitHub
[go: up one dir, main page]

8000 Skip to content

Commit f31ac56

Browse files
committed
Merge branch 'master' of github.com:ookcode/Algorithms
2 parents 01539d1 + d4b9389 commit f31ac56

File tree

5 files changed

+183
-1
lines changed

5 files changed

+183
-1
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
### Check List
2+
3+
Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.
4+
5+
- [ ] I have read the [README.md](https://github.com/ookcode/Algorithms/blob/master/README.md), but there is no information I need.
6+
- [ ] I have searched in [existing issues](https://github.com/ookcode/Algorithms/issues?utf8=%E2%9C%93&q=is%3Aissue), but did find a same one.
7+
8+
### Issue Description
9+
10+
#### Description
11+
12+
[Tell us about the issue]
13+
14+
#### Reproduce
15+
16+
[The steps to reproduce this issue. What are the parameters, where did you put your code, etc.]
17+
18+
#### Other Comment
19+
20+
[Add anything else here]

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at ookcode@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Contributing Guidelines
2+
3+
This document contains information and guidelines about contributing to this project.
4+
Please read it before you start participating.
5+
6+
**Topics**
7+
8+
* [Asking Questions](#asking-questions)
9+
* [Reporting Issues](#reporting-issues)
10+
* [Developers Certificate of Origin](#developers-certificate-of-origin)
11+
12+
## Asking Questions
13+
14+
We don't use GitHub as a support forum.
15+
For any usage questions that are not specific to the project itself,
16+
please ask on [Stack Overflow](https://stackoverflow.com) instead.
17+
By doing so, you'll be more likely to quickly solve your problem,
18+
and you'll allow anyone else with the same question to find the answer.
19+
This also allows maintainers to focus on improving the project for others.
20+
21+
## Reporting Issues
22+
23+
A great way to contribute to the project
24+
is to send a detailed issue when you encounter an problem.
25+
We always appreciate a well-written, thorough bug report.
26+
27+
Check that the project issues database
28+
doesn't already include that problem or suggestion before submitting an issue.
29+
If you find a match, add a quick "+1" or "I have this problem too."
30+
Doing this helps prioritize the most common problems and requests.
31+
32+
When reporting issues, please include the following:
33+
34+
* The version of Xcode you're using
35+
* The version of iOS or macOS you're targeting
36+
* The full output of any stack trace or compiler error
37+
* A code snippet that reproduces the described behavior, if applicable
38+
* Any other details that would be useful in understanding the problem
39+
40+
This information will help us review and fix your issue faster.
41+
42+
## Developer's Certificate of Origin
43+
44+
By making a contribution to this project, I certify that:
45+
46+
- (a) The contribution was created in whole or in part by me and I
47+
have the right to submit it under the open source license
48+
indicated in the file; or
49+
50+
- (b) The contribution is based upon previous work that, to the best
51+
of my knowledge, is covered under an appropriate open source
52+
license and I have the right under that license to submit that
53+
work with modifications, whether created in whole or in part
54+
by me, under the same open source license (unless I am
55+
permitted to submit under a different license), as indicated
56+
in the file; or
57+
58+
- (c) The contribution was provided directly to me by some other
59+
person who certified (a), (b) or (c) and I have not modified
60+
it.
61+
62+
- (d) I understand and agree that this project and the contribution
63+
are public and that a record of the contribution (including all
64+
personal information I submit with it, including my sign-off) is
65+
maintained indefinitely and may be redistributed consistent with
66+
this project or the open source license(s) involved.
67+
68+
---
69+
70+
*Some of the ideas and wording for the statements above were based on work by the [Alamofire](https://github.com/Alamofire/Alamofire/blob/master/CONTRIBUTING.md) communities. We commend them for their efforts to facilitate collaboration in their projects.*

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 ookcode
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1+
# Algorithms
2+
3+
[![Language: C++](https://img.shields.io/badge/language-C++-fc487d.svg)](https://isocpp.org/)
4+
[![License](https://img.shields.io/badge/license-MIT-000000.svg)](https://github.com/ookcode/Dinky2D/blob/master/LICENSE)
5+
6+
主流算法的 C++ 实现。
7+
8+
## 环境
9+
10+
Xcode 9.0+
11+
12+
## 内容
13+
114
### 常用算法
15+
216
* [x] [二叉树和前中后序遍历](https://github.com/ookcode/Algorithms/blob/master/CommonAlgorithms/BinaryTree/main.cpp)
317
* [x] [线索二叉树](https://github.com/ookcode/Algorithms/blob/master/CommonAlgorithms/BinaryTree/main.cpp)
418
* [x] [哈夫曼树与哈夫曼编码](https://github.com/ookcode/Algorithms/blob/master/CommonAlgorithms/HuffmanTree/main.cpp)
@@ -17,9 +31,10 @@
1731
* [x] [堆排序](https://github.com/ookcode/Algorithms/blob/master/CommonAlgorithms/Sort/main.cpp)
1832
* [x] [归并排序](https://github.com/ookcode/Algorithms/blob/master/CommonAlgorithms/Sort/main.cpp)
1933
* [x] [快速排序](https://github.com/ookcode/Algorithms/blob/master/CommonAlgorithms/Sort/main.cpp)
20-
* [ ] A*寻路算法
34+
* [ ] A\*寻路算法
2135

2236
### 其他算法
37+
2338
* [ ] 静态链表
2439
* [ ] 十字链表
2540
* [ ] 四则运算表达式求值(逆波兰后缀表示法)
@@ -28,3 +43,13 @@
2843
* [ ] AOE网关键路径
2944
* [ ] 多路查找树(B树)
3045
* [ ] 散列表查找(哈希表)
46+
47+
## 作者
48+
49+
ookcode, ookcode@gmail.com
50+
51+
## 协议
52+
53+
![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/License_icon-mit-88x31-2.svg/128px-License_icon-mit-88x31-2.svg.png)
54+
55+
Algorithms 基于 MIT 协议进行分发和使用,更多信息参见协议文件。

0 commit comments

Comments
 (0)
0