데이터 구조 및 알고리즘(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 포함된 추가 정보를 작성하십시오(마크다운 문서).- )만 포함될 수 있습니다(예: 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 소스 코드 파일은 src/ 폴더( 예: src/main.cpp 또는 src/main.js ) 또는 루트 폴더( 예: palindrome.go 또는 App.java )에 있어야 합니다. 여기서 ext 특정 코드의 파일 확장자입니다. 프로그래밍 언어.
다시 말하지만, 소스 코드는 프로그래밍 언어가 적용하는 유효한 파일 구조 규칙을 준수해야 합니다.
프로그래밍은 각 프로그래밍 언어의 명명 규칙을 준수해야 합니다.
| 프로그래밍 언어 | 사용자 |
|---|---|
| C 또는 C++ | @Arsenic-ATG, @UG-SEP, @aayushjain7, @Ashborn-SM, @Ashad001 |
| 자바 | @TawfikYasser, @aayushjain7, @mohitchakraverty |
| 기음# | @ming-tsai, @Waqar-107 |
| 가다 | @ayo-ajayi |
| 파이썬 | @비소-ATG, @sridhar-5 |
| 자바스크립트 | @밍차이 |
MIT