GithubHelp home page GithubHelp logo

cclauss / dsa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from makecontributions/dsa

1.0 0.0 0.0 267 KB

Data structure and Algorithm (DSA) contributions

License: MIT License

C++ 33.15% Python 7.17% C 11.24% JavaScript 4.72% C# 3.01% Java 37.37% Go 2.50% Rust 0.59% Haskell 0.26%

dsa's Introduction

Data Structures and Algorithm

Data structure and Algorithm (DSA)

Contribution Guidelines

1. Contribution Specifications

The problem being contributed must either be a simple file (Eg. kruskal-algorithm.cpp, linear-search.java) or a more complex directory (palindrome/). This is a unit problem.

The directory tree has the following convention of category/language/problem, where category is the topic or category of the problem being contributed (Eg. strings, sorting, linked-lists etc.), language represents the language code of the problem (Eg. c-or-cpp for C/C++, python for Python, java for Java etc.), and problem is a conforming name to the problem (Eg. linear-search.cpp, palindrome, queue-linked-list.cpp etc.)

A unit problem must conform to the following specifications:

  • The name should be in lowercase. (Eg. palindrome/, binary-search.cpp etc.).
  • Each word must be separated by a dash or a hyphen (-).

If you have a problem that belongs to a new topic or category than one which are present:

  1. Create a new folder and an index for it inside (a readme, README.md file).
  2. To each new index file, write the readme with your problem in it (Markdown Documentation).
  3. The folder name can also only contain lowercase characters and dashes or hyphens (-) (Eg. strings sorting etc.)

Simple (File) Contributions

The file should conform to the problem specification, and the extension (Eg. linear-search.java, kruskal-algorithm.cpp, count-inversions.js etc.)

Project/Folder-based Contributions

The project and folder-based contributions have a bit more stricter contribution contribution specifications.

The folder should conform to the problem specification, along with the following specifications

Folder Structure

problem-name\
| - .gitignore
| - README.md
| - Makefile       # or the specific specification/requirements/configuration file
| - src\
    | - main.ext

README.md Specification / Template

# <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 File

# 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

Build File / Specification File / Configuration File

It can be any of the following ones

  • C/C++: Makefile
  • Python: requirements.txt
  • JavaScript: package.json and package-lock.json
  • Rust: Cargo.toml and Cargo.lock
  • Go: go.mod

Source Code File

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 programming language.

Again, the source codes must conform to a valid file structure convention that the programming language enforces.

2. Naming Convention

The programming should keep the naming convention rule of each programming language.

Other topic

Contributors

Reviewers

Programming Language Users
C or C++ @Arsenic-ATG, @UG-SEP, @aayushjain7
Java @TawfikYasser, @cyberwizard1001, @aayushjain7
C# @ming-tsai
Go @atin
Python @Arsenic-ATG, @atin, @sridhar-5, @cyberwizard1001
JavaScript @paulsonjpaul

Open Graph

License

MIT

dsa's People

Contributors

aayushjain7 avatar adrenalinerush07 avatar akrish4 avatar amisha-mohapatra avatar anupam-b avatar apex-blaze avatar arsenic-atg avatar ashborn-sm avatar bharatiyakaran avatar cclauss avatar dabohemianstarlord avatar gauthamkrishna9991 avatar gborgman05 avatar hazel11182 avatar jacobin-sctcs avatar mhdsabah avatar ming-tsai avatar negiakash890 avatar nightboard avatar pavan-kumar122 avatar ritwik4690 avatar roshaen avatar satcasm avatar tawfikyasser avatar temitayopelumi avatar toihirhalim avatar ug-sep avatar v007rj avatar xaerru avatar xf30 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.