This repository contains codes for various data structures and algorithms in C, C++, Java, Python, C#, Go, JavaScript and Kotlin.

Overview

Overview

  • The goal of this project is to have codes for various data structures and algorithms - in C, C++, Java, Python, C#, Go, JavaScript and Kotlin.
  • Feel free to contribute in any way you want.
  • Make sure to follow the contribution guidelines listed below.

Content

  • We currently have 8 folders for 8 programming languages - C, C++, Java, Python, C#, Go, JavaScript and Kotlin.
  • Do not create folders in your submissions, unless specifically told to do so.

YOU CANNOT CREATE A PR DIRECTLY. YOU NEED TO BE ASSIGNED AN ISSUE. IF THE ISSUE DOES NOT EXIST, CREATE ONE, ASK FOR IT IN YOUR PREFERRED PROGRAMMING LANGUAGE AND WAIT FOR IT TO BE ASSIGNED TO YOU. NOT FOLLOWING THIS WILL BE CONSIDERED A VIOLATION AND YOUR PR WILL BE MARKED INVALID. WHILE CREATING AN ISSUE, PLEASE FOLLOW THE FORMAT, ELSE, THE ISSUE WILL BE CLOSED.


Contribution Guidelines {For a more detailed explanation read How to Contribute?}

  • Issues will be assigned on a first come, first serve basis. The person who creates the issue gets the first priority. And then, issues are assigned based on who commented first. You just have to comment on the issue, asking to be assigned and the programming language you should be assigned in, and it will be done if found fit.
  • You cannot work on any issue that is not assigned to you.
  • If you have anything else in mind, FEEL FREE TO CREATE AN ISSUE and please wait for it to be assigned to you. If assigned to you, then you can start working on it and create a PR.
  • All PRs must be made from a Branch. Create a separate branch for every Issue you are working upon and then create a PR.
  • In your code file, add (Inside a multiline comment) Sample Input and Output at the end of the file along with Time and Space Complexity.
  • Every time you add a file via a Pull Request also update the README.md file for that particular language in Alphabetical Order in the same PR. You'll find a README.md file in each language folder.
  • Plagiarism is highly discouraged and a plagiarized PR won't be accepted at all and will be marked as spam.
  • PR should be created within a week of you being assigned to it.
  • At no point of time, you can claim more than 4 issues i.e. you can have at max 4 working issues, for this repository, at any point of time.

Where to upload the files

PLEASE READ THIS

  • Your files should be uploaded directly into the corresponding folder (e.g. if you wrote code for a Data Structure in C-Plus-Plus, it goes inside the C-Plus-Plus folder and so on)
  • Edit the corresponding README.md file to add the link to your code in the corresponding section (GitHub Markdown Guide)
  • Under no circumstances create new folders within the language folders to upload your code unless specifically told to do so.

Don't know how to create a PR? Refer this: Steps to create a PR

Maintainers for this project (Refer this for Instructions specific to Maintainers)

  • Manan - @manan025

Special Thanks to @sukritishah15 for other resources.


License

This project follows the MIT License.

SHOW SOME LOVE BY LEAVING A

Comments
  • Merge sort

    Merge sort

    🚀 Feature

    merge sort is an efficient, and comparison-based sorting algorithm.

    Have you read the Contribution Guidelines?

    YES

    Pitch

    Merge sort is one of the most efficient sorting algorithms. It works on the principle of Divide and Conquers.

    Assignees

    (Do not make changes in this section until asked to do so)
    C -
    C# -
    C++ -
    Go -
    Java -
    Javascript -
    Kotlin -
    Python -

    duplicate 
    opened by devjak26 6
  • Added DFS and BFS on a 2d grid

    Added DFS and BFS on a 2d grid

    Have you read the Contribution Guidelines?

    YES

    Description

    Added DFS and BFS on a 2d grid

    Checklist

    • [x] I've read the contribution guidelines.
    • [x] I've checked the issue list before deciding what to submit.
    • [x] I've edited the README.md and link to my code.

    Related Issues (Mention Issue no. like #xxx)

    Fixes Issue #155

    opened by Mudit018 5
  • Vertical tree traversal

    Vertical tree traversal

    Have you read the Contribution Guidelines?

    yes

    Description

    Vertical tree traversal

    Checklist

    • [x] I've read the contribution guidelines.
    • [x] I've checked the issue list before deciding what to submit.
    • [x] I've edited the README.md and link to my code.

    Related Issues (Mention Issue no. like #xxx)

    Fixes Issue
    (Write your answer above.)

    hacktoberfest-accepted 
    opened by ishika22 5
  • Added Kadane's Algorithm in Python and Updated Readme.md

    Added Kadane's Algorithm in Python and Updated Readme.md

    Have you read the Contribution Guidelines?

    Yes

    Description

    Added Kadane's Algorithm to find largest sum contiguous subarray in Python and updated Readme.md

    Checklist

    • [x] I've read the contribution guidelines.
    • [x] I've checked the issue list before deciding what to submit.
    • [x] I've edited the README.md and link to my code.

    Related Issues (Mention Issue no. like #xxx)

    Fixes Issue
    #68 (Write your answer above.)

    hacktoberfest-accepted 
    opened by anushkarthik05 5
  • Dijkstra Algorithm in C++

    Dijkstra Algorithm in C++

    Have you read the Contribution Guidelines?

    Yes

    Description

    Add Dijkstra Algorithm to find single source shortest path in weighted graph.

    Checklist

    • [x] I've read the contribution guidelines.
    • [x] I've checked the issue list before deciding what to submit.
    • [x] I've edited the README.md and link to my code.

    Related Issues (Mention Issue no. like #xxx)

    Fixes Issue
    #78

    hacktoberfest-accepted 
    opened by vedant-jain03 5
  • Added Fibonacci series in c and updated README.md

    Added Fibonacci series in c and updated README.md

    Have you read the Contribution Guidelines?

    yes

    Description

    (Write your answer here.)

    Checklist

    • [x] I've read the contribution guidelines.
    • [x] I've checked the issue list before deciding what to submit.
    • [x] I've edited the README.md and link to my code.

    Related Issues (Mention Issue no. like #xxx)

    Fixes Issue

    Added Fibonacci series in c and updated README.md #

    hacktoberfest-accepted 
    opened by JatinKumarMahaldar 4
  • Sachin liyanage quick sort c# - #62

    Sachin liyanage quick sort c# - #62

    Have you read the Contribution Guidelines?

    (Write your answer here.)

    Description

    (Write your answer here.)

    Checklist

    • [ ] I've read the contribution guidelines.
    • [ ] I've checked the issue list before deciding what to submit.
    • [ ] I've edited the README.md and link to my code.

    Related Issues (Mention Issue no. like #xxx)

    Fixes Issue
    (Write your answer above.)

    opened by Sachin-Mamoru 4
  • Added merge sort Javascript (Issue #60)

    Added merge sort Javascript (Issue #60)

    Have you read the Contribution Guidelines?

    (Write your answer here.)

    Description

    (Write your answer here.)

    Checklist

    • [ ] I've read the contribution guidelines.
    • [ ] I've checked the issue list before deciding what to submit.
    • [ ] I've edited the README.md and link to my code.

    Related Issues (Mention Issue no. like #xxx)

    Fixes Issue
    (Write your answer above.)

    hacktoberfest-accepted 
    opened by Onkar627 4
  • Some famous interview questions are missing. Please assign me this, i will do it asap

    Some famous interview questions are missing. Please assign me this, i will do it asap

    🚀 Feature

    (Write down a clear and concise description of what the feature is.)

    Have you read the Contribution Guidelines?

    (Write your answer here.)

    Pitch

    (Please explain why this feature should be implemented and how it would be used.) These questions needs to be addedd Majority element Rat in a maze Pascal's triangle

    Assignees

    (Do not make changes in this section until asked to do so)
    C -
    C# -
    C++ -
    Go -
    Java -
    Javascript -
    Kotlin -
    Python -

    opened by rushikeshadhav 3
  • Update README.md

    Update README.md

    Have you read the Contribution Guidelines?

    (Write your answer here.)

    Description

    (Write your answer here.)

    Checklist

    • [ ] I've read the contribution guidelines.
    • [ ] I've checked the issue list before deciding what to submit.
    • [ ] I've edited the README.md and link to my code.

    Related Issues (Mention Issue no. like #xxx)

    Fixes Issue
    (Write your answer above.)

    documentation 
    opened by SUDHANSHKESHARWANI 3
  • Floyd Algorithm and Insertion sort bug fix

    Floyd Algorithm and Insertion sort bug fix

    Have you read the Contribution Guidelines?

    Yes

    Checklist

    • [yes ] I've read the contribution guidelines.
    • [ yes] I've checked the issue list before deciding what to submit.
    • [ yes] I've edited the README.md and link to my code.

    Related Issues (Mention Issue no. like #xxx)

    Fixes Issue
    Found an issue in insertion sort. Fixed it.

    enhancement 
    opened by ishika22 3
  • Hacktoberfest

    Hacktoberfest

    According to the rules of Hacktoberfest, DSA repositories are not eligible to participate in Hacktoberfest 2021. Therefore, all the PRs you made to this/ any other DSA repo will be considered null and void.

    I'm extremely sorry for any inconvenience caused.

    hacktoberfest 
    opened by manan025 1
  • Selection Sort for Kotlin (#51)

    Selection Sort for Kotlin (#51)

    Have you read the Contribution Guidelines?

    Yes

    Description

    Added selection sort algorithm for kotlin

    Checklist

    • [+] I've read the contribution guidelines.
    • [+] I've checked the issue list before deciding what to submit.
    • [+] I've edited the README.md and link to my code.

    Related Issues (Mention Issue no. like #xxx)

    (#51) Selection Sort

    Fixes Issue Added selection sort in kotlin

    opened by shauryam-exe 0
  • Balaned Brackets(using stacks)

    Balaned Brackets(using stacks)

    Have you read the Contribution Guidelines?

    Yes

    Description

    Added a program to check whether a given set of brackets is balanced or not using stacks in C#

    Checklist

    • [x] I've read the contribution guidelines.
    • [x] I've checked the issue list before deciding what to submit.
    • [x] I've edited the README.md and link to my code.

    Related Issues (Mention Issue no. like #xxx)

    Fixes Issue #220
    (Write your answer above.)

    opened by DoyelA 0
  • Add Linked List Palindrome check

    Add Linked List Palindrome check

    Have you read the Contribution Guidelines?

    YES

    Description

    Added LinkedList Palindrome Check Code with Algorithm and Time and Space complexity and multiple test cases using Python

    Checklist

    • [x] I've read the contribution guidelines.
    • [x] I've checked the issue list before deciding what to submit.
    • [x] I've edited the README.md and link to my code.

    Related Issues (Mention Issue no. like #xxx)

    Fixes Issue
    Linked list is palindrome #93

    opened by sudhir512kj 0
  • Update README.md

    Update README.md

    Have you read the Contribution Guidelines?

    (Write your answer here.)

    Description

    (Write your answer here.)

    Checklist

    • [ ] I've read the contribution guidelines.
    • [ ] I've checked the issue list before deciding what to submit.
    • [ ] I've edited the README.md and link to my code.

    Related Issues (Mention Issue no. like #xxx)

    Fixes Issue
    (Write your answer above.)

    opened by NeerajKumar201 0
  • Create LinearSearch.kt

    Create LinearSearch.kt

    Have you read the Contribution Guidelines?

    (Write your answer here.)

    Description

    (Write your answer here.)

    Checklist

    • [x] I've read the contribution guidelines.
    • [x] I've checked the issue list before deciding what to submit.
    • [x] I've edited the README.md and link to my code.

    Related Issues (Mention Issue no. like #xxx)

    Fixes Issue
    (Write your answer above.)

    opened by NeerajKumar201 0
Owner
Manan
Confused if I am a student or a programmer.
Manan
A repository that contains Data Structure and Algorithms coded on Java

A repository that contains Data Structure and Algorithms coded on Java . It will also contain solutions of questions from Leetcode.

Akshat Gupta 6 Oct 15, 2022
Data structures and algorithms exercises in java

Data structure and algorithms in Java About The Project [] In this repository you can find examples of data structure exercises solved in java and som

Luis Perez Contreras 1 Nov 25, 2021
Data structures & algorithms implemented in Java and solutions to leetcode problems.

Hello, World! ?? Hey everyone, I'm Sharad ☃ , and I'm a Software Engineer ?? at eGain! This repository ?? is all about data structures & algorithms an

Sharad Dutta 16 Dec 16, 2022
Popular Algorithms and Data Structures implemented in popular languages

Algos Community (college) maintained list of Algorithms and Data Structures implementations. Implemented Algorithms Algorithm C CPP Java Python Golang

IIIT Vadodara Open Source 1k Dec 28, 2022
Example of implementing data structures in Java

Data Structures Example of implementing data structures in Java Implemented data structure : Queue Stack Linked List Binary Search Tree (BST) Trie Hea

Ismaïl BENHALLAM 2 Sep 27, 2021
🎓☕ Repository of lessons and exercises from loiane.training's course on data structure with Java

☕ Curso estrutura de dados com Java by @loiane.training Repositório com as aulas e exercícios do curso de estrutura de dados com Java da loiane.traini

Leticia Campos 2 Feb 1, 2022
gRPC and protocol buffers for Android, Kotlin, and Java.

Wire “A man got to have a code!” - Omar Little See the project website for documentation and APIs. As our teams and programs grow, the variety and vol

Square 3.9k Dec 23, 2022
Facebook Clone created using java based on Graph data Structure

Facebook Clone Facebook Clone created using java based on Graph data Structure Representation of Social Media using Graph Data Structure in Java It is

yogita pandurang chaudhari 1 Jan 16, 2022
Algorithm and Data Structrue

SWE241P Algorithm and Data Structure Ex1 TreeSet with Red-Black Tree HashSet LinkedList Set Ex 2 Selection Sort Insertion Sort Heap Sort Merge Sort Qu

Tiger Liu 4 Apr 13, 2022
Protocol Buffers - Google's data interchange format

Protocol Buffers - Google's data interchange format Copyright 2008 Google Inc. https://developers.google.com/protocol-buffers/ Overview Protocol Buffe

Protocol Buffers 57.6k Jan 1, 2023
A lightning fast, transactional, file-based FIFO for Android and Java.

Tape by Square, Inc. Tape is a collection of queue-related classes for Android and Java. QueueFile is a lightning-fast, transactional, file-based FIFO

Square 2.4k Dec 30, 2022
Worker-queue implementation on top of Java and database

Database Queue Library provides worker-queue implementation on top of Java and database. Fintech company YooMoney uses db-queue in cases where reliabi

null 17 Dec 12, 2022
A Persistent Java Collections Library

PCollections A Persistent Java Collections Library Overview PCollections serves as a persistent and immutable analogue of the Java Collections Framewo

harold cooper 708 Dec 28, 2022
A better compressed bitset in Java

RoaringBitmap Bitsets, also called bitmaps, are commonly used as fast data structures. Unfortunately, they can use too much memory. To compensate, we

Roaring bitmaps: A better compressed bitset 2.9k Dec 29, 2022
A fast, simple persistent queue written in Java

Ladder Introduction Ladder is a lightning fast persistent queue written in Java. Usage Installation // TODO publish to Maven Central Create persistent

null 6 Sep 9, 2022
Material de apoio da turma de introdução ao JAVA da Let's Code

Introdução ao Java Esse repositório foi criado com o intuito de servir como material de apoio ao módulo de Introdução a Java da Let's Code. Sumário Li

Bruno Pereira Pinho 5 Oct 25, 2022
JAVA DASAR PROGRAMING

JAVA DASAR PROGRAMING Halo , Selamat datang di repository kami ! BELAJAR JAVA DASAR HANYA DALAM WAKTU 14 HARI Ayo berpartisipasi menjadi bagian dari J

Radja Aulia Al Ramdani 2 Nov 5, 2022
C++ / JAVA Optimised Solutions for LeetCode Problems

LeetCode Solutions Algorithms Math Bit Manipulation Array String Matrix Hash Table Binary Search Sorting Two Pointers Dynamic Programming My Most Vote

Akshaya Amar 191 Jan 5, 2023
A big, fast and persistent queue based on memory mapped file.

Big Queue A big, fast and persistent queue based on memory mapped file. Notice, bigqueue is just a standalone library, for a high-throughput, persiste

bulldog 520 Dec 30, 2022