資料結構與演算法(DSA)
所貢獻的問題必須是一個簡單的檔案(例如kruskal-algorithm.cpp 、 linear-search.java )或更複雜的目錄( palindrome/ )。這是單位problem 。
目錄樹有以下algorithms/{language}/{category}/{problem} ,其中{language}表示問題的語言程式碼(例如, C++的CPlusPlus ,C#的CSharp等), {category}是所貢獻問題的主題或類別(例如, strings 、 sorting 、 linked-lists等),而{problem}是問題的一致名稱(例如, linear-search.cpp 、 palindrome 、 queue-linked-list.cpp等)
單元problem必須符合以下規範:
palindrome/ binary-search.cpp )。- ) 分隔。如果您遇到的問題屬於新主題或類別而不是現有問題:
README.md檔案)。problem自述文件(Markdown 文件)。- )(例如strings sorting等) 該檔案應符合problem規格和副檔名(例如, linear-search.java 、 kruskal-algorithm.cpp 、 count-inversions.js等)
基於專案和資料夾的貢獻有更嚴格的貢獻規範。
該文件夾應符合problem規範以及以下規範
資料夾結構
problem-name
| - .gitignore
| - README.md
| - Makefile # or the specific specification/requirements/configuration file
| - src
| - main.extREADME.md規範/模板 # < Title of the Problem >
< description of the problem >
## Prerequisites
- prerequisite library or package
- [ prerequisite library ] ( https://www.example.com/link-to-official-library )
## Instructions
- instructions to run the project
- < Simple and reproducible commands to execute the project >
``` bash
make # or 'cargo run', or 'dotnet run' or 'mvn exec:java' etc.
```
## Test Cases & Output < if exists>
< If you can provide test cases, describe it here, else remove this section >.gitignore文件 # add all output files and build files to be excluded from git tracking
main # executable file also must have the project name
target / # the build file, for example for rust 可以是以下任一個
Makefilerequirements.txtpackage.json和package-lock.jsonCargo.toml和Cargo.lockgo.mod The source code files should either be in src/ folder ( Eg. src/main.cpp or src/main.js ) or the root folder ( Eg. palindrome.go or App.java ) where ext is the file extension for the specific程式設計語言.
同樣,原始碼必須符合程式語言強制執行的有效檔案結構約定。
程式設計時應遵循每種程式語言的命名約定規則。
| 程式設計語言 | 使用者 |
|---|---|
| C 或 C++ | @砷-ATG,@UG-SEP,@aayushjain7,@Ashborn-SM,@Ashad001 |
| 爪哇 | @TawfikYasser、@aayushjain7、@mohitchakraverty |
| C# | @ming-tsai,@Waqar-107 |
| 去 | @ayo-ajayi |
| Python | @砷-ATG,@sridhar-5 |
| JavaScript | @明仔 |
麻省理工學院