HACKTOBERFEST 2023
Star The Repository if it helped you in any direction.
Algorithms and Data-Structures.
This is a repository to get Algorithms and data-structures in many languages.
Everybody is welcomed to contribute to this repo.
Overview
The goal of this project is to help the beginners with their contributions in Open Source. We aim to achieve this collaboratively, so feel free to contribute in any way you want, just make sure to follow the contribution guidelines.
You can contribute to it in either of the following ways:
You can choose at least any one option below or can add any algorithm or data-structure you like:
- Beginners:
- A simple algorithm you know in any language.
- Add any easy competitive programming question you like.
- Intermediate:
- Add any algorithm you like.
- Add any data-structure implementation.
- Add any interview question as comment and solution in any language.
- Experienced:
- Add any important algorithm in any language.
- Add any game in your favorite programming language!
- Add any Hard Problem from competitive programming website.
- Add any interview question as comment and solution in any language.
Implementations โ
Quick Start ๐
What is Hacktoberfest?
Hacktoberfest is a month long virtual festival event to celebrate open source contributions presented by Digital Ocean and DEV. It is the easiest way to get into open source!
During the entire month of October 2023, all you have to do is contribute to any open source projects and open at least 4 pull requests. Yes, any project and any kind of contributions.
Why Should I Contribute?
The Hacktoberfestโs simple plain objective is:
Support open source and earn a limited edition T-shirt!
But, itโs not just about the t-shirts or stickers. Its about supporting open source. Its about celebrating open source, and giving it back. If youโve never contributed to open source before, this is the perfect time to get started because Hacktoberfest provides a large list of available contribution opportunities.
What Can I Contribute?
Hacktoberfestยฎ is open to everyone in our global community. Whether youโre a developer, student learning to code. You can contribute to anything from code to simple fix, new feature to grammar mistake.
How to Contribute in this repo.
Contributing to open-source is easy.
- Please read the contributing guideline before any PR.
- Fork the repository
- Improve current program by
- improving codes and features
- adding new feature
- add any algorithm you like
- by adding any data-structure implementation you like.
- improving the documentation
- you can also optimise somebody's code
- Push your work and Create a Pull Request
Click here for more explanation
What if my pull requests arenโt accepted?
The only exception would be if the project maintainer chooses to mark your pull request as โinvalidโ. Even if your pull requests arenโt accepted, they should still count toward your 4 pull requests necessary to earn the shirt.
What kinds of pull requests count toward earning the Hacktoberfest shirt?
Any pull request made to a public repo on GitHub will count. The pull request must contain commits you personally made yourself โ not automated commits from bots.
You can contribute to any open source project hosted on Github.com and contribute anything between October 1 to October 31 midnight in 2023. You will find plenty of issues labeled with hacktoberfest or good-first-issue etc on Github. These will be the simple ones most probably and easy to fix.
Directory Tree ๐๐ป
Directory Tree
```
.
โโโ CODE_OF_CONDUCT.md
โโโ LICENSE
โโโ README.md
โโโ algorithms
โ โโโ c-sharp
โ โ โโโ algorithmsInfo.md
โ โโโ cpp
โ โ โโโ algorithmsInfo.md
โ โ โโโ bfs.cpp
โ โ โโโ bfs_modified.cpp
โ โ โโโ binary_search.cpp
โ โ โโโ bogo_sort.cpp
โ โ โโโ bubble_sort.cpp
โ โ โโโ dft.cpp
โ โ โโโ dijkstra's_algorithm.cpp
โ โ โโโ heap_sort.cpp
โ โ โโโ insertion_sort.cpp
โ โ โโโ kadane's_algorithm.cpp
โ โ โโโ krushkal's_minimum_spanning_tree.cpp
โ โ โโโ linear_search.cpp
โ โ โโโ longest_increasing_subsequence.cpp
โ โ โโโ longest_palindrome_substring.cpp
โ โ โโโ max_xor_pair_trie.cpp
โ โ โโโ merge_sort.cpp
โ โ โโโ next_greater_in_o(n).cpp
โ โ โโโ quick_sort.cpp
โ โ โโโ selection_sort.cpp
โ โ โโโ sieve_of_eratosthenes.cpp
โ โโโ haskell
โ โ โโโ maths
โ โ โโโ fibonacci.hs
โ โโโ java
โ โ โโโ algorithmsInfo.md
โ โ โโโ amstrong.java
โ โ โโโ binary_search.java
โ โ โโโ breadth_first_search.java
โ โ โโโ bst
โ โ โ โโโ bst.java
โ โ โ โโโ bst_node.java
โ โ โ โโโ bstree.java
โ โ โโโ bubble_sort.java
โ โ โโโ counting_sort.java
โ โ โโโ dfs.java
โ โ โโโ dijkstra's_algorithm.java
โ โ โโโ factorial.java
โ โ โโโ huffman_coding.java
โ โ โโโ insertion_sort.java
โ โ โโโ interpolation_sort.java
โ โ โโโ kadane's_algorithm.java
โ โ โโโ krushkal's_algorithm.java
โ โ โโโ quick_sort.java
โ โโโ javascript
โ โ โโโ algorithmsInfo.md
โ โ โโโ bubble_sort.js
โ โ โโโ bubble_sort_visualized.js
โ โ โโโ counting_sort.js
โ โ โโโ linear_search.js
โ โโโ other
โ โ โโโ algorithmsInfo.md
โ โ โโโ typescript
โ โ โโโ bogo_sort.ts
โ โ โโโ counting_sort.ts
โ โ โโโ merge_sort.ts
โ โโโ python
โ โโโ algorithmsInfo.md
โ โโโ binary_search.py
โ โโโ bogo_sort.py
โ โโโ breadth_first_search.py
โ โโโ bubble_sort.py
โ โโโ dijkstra's_algorithm.py
โ โโโ heap_sort.py
โ โโโ insertion_sort.py
โ โโโ kadane's_algorithm.py
โ โโโ krushal's_minimum_spanning_tree.py
โ โโโ linear_search.py
โ โโโ merge_sort.py
โ โโโ quick_sort.py
โโโ data structures
โ โโโ c-sharp
โ โ โโโ dsInfo.md
โ โโโ cpp
โ โ โโโ bst.cpp
โ โ โโโ doubly_linked_list.cpp
โ โ โโโ dsInfo.md
โ โ โโโ heap.cpp
โ โ โโโ linkedlist.cpp
โ โ โโโ trie.cpp
โ โ โโโ union_find_disjoint_sets.cpp
โ โโโ java
โ โ โโโ bst.java
โ โ โโโ dsInfo.md
โ โ โโโ dynamic_list.java
โ โ โโโ queue_using_stack.java
โ โโโ javascript
โ โ โโโ bst.js
โ โ โโโ dsInfo.md
โ โโโ other
โ โ โโโ dsInfo.md
โ โโโ python
โ โโโ dsInfo.md
โโโ docs
โ โโโ CONTRIBUTING.md
โโโ hacktoberfest.gif
โโโ hacktoberfest2020.svg
โโโ others
โ โโโ hang_man_sy.py
โ โโโ pythonSMTP_Skeleton.py
โ โโโ snake_game.py
โโโ questions
โ โโโ c-sharp
โ โ โโโ queInfo.md
โ โโโ cpp
โ โ โโโ all_sol_of_n_queen.cpp
โ โ โโโ edit_distance.cpp
โ โ โโโ knapsack.cpp
โ โ โโโ knapsack_with_large_weight.cpp
โ โ โโโ knight_tour_backtracking.cpp
โ โ โโโ matrix_chain_mult.cpp
โ โ โโโ n_queen.cpp
โ โ โโโ queInfo.md
โ โ โโโ rod_cutting_prob.cpp
โ โ โโโ sub_matrix_with_all_1s.cpp
โ โ โโโ two_sum.cpp
โ โโโ java
โ โ โโโ coin_change.java
โ โ โโโ queInfo.md
โ โโโ javascript
โ โ โโโ queInfo.md
โ โโโ other
โ โ โโโ queInfo.md
โ โโโ python
โ โโโ coin_change1.py
โ โโโ coin_change2.py
โ โโโ egg_dropping.py
โ โโโ queInfo.md
โ โโโ subset.py
โโโ templates
โโโ cpp
โ โโโ templateHelp.md
โโโ java
โ โโโ templateHelp.md
โโโ other
โ โโโ templateHelp.md
โโโ python
โ โโโ templateHelp.md
โโโ templateHelp.md
```
Implemented Algorithms
Algorithm |
C |
CPP |
Java |
Python |
JavaScript |
Golang |
C# |
Rust |
Other |
Binary Search |
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
|
TS, KT |
Bogo Sort |
|
:white_check_mark: |
|
:white_check_mark: |
|
|
|
|
TS |
Breadth First Search |
|
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
|
|
|
|
|
Breadth First Traversal |
|
|
|
:white_check_mark: |
|
|
|
|
|
Bubble sort |
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
|
|
|
|
Counting Sort |
|
|
:white_check_mark: |
|
:white_check_mark: |
|
|
|
TS |
Depth First Search |
|
|
:white_check_mark: |
|
|
|
|
|
|
Depth First Traversal |
|
:white_check_mark: |
|
|
|
|
|
|
|
Dijkstra Algorithm |
|
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
|
|
|
|
|
Finite Automata |
|
|
|
|
|
|
|
|
|
Heap Sort |
|
:white_check_mark: |
|
:white_check_mark: |
|
|
|
|
|
Huffman Coding |
|
|
:white_check_mark: |
|
|
|
|
|
|
Insertion Sort |
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
|
|
|
|
|
Interpolation Search |
|
|
:white_check_mark: |
|
|
|
|
|
|
K-NN |
|
|
|
|
|
|
|
|
|
K Centers Problem |
|
|
|
|
|
|
|
|
|
Kadane's Algorithms |
|
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
|
|
|
|
|
KMP Algorithm |
|
|
|
|
|
|
|
|
|
Kruskalโs Minimum Spanning Tree Algorithm |
|
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
|
|
|
|
|
Linear Search |
|
:white_check_mark: |
|
:white_check_mark: |
:white_check_mark: |
|
|
|
|
Longest Common Subsequence |
|
|
|
|
|
|
|
|
|
Longest Increasing Subsequence |
|
:white_check_mark: |
|
|
|
|
|
|
|
Longest Palindromic Substring |
|
:white_check_mark: |
|
|
|
|
|
|
|
Merge Sort |
:white_check_mark: |
:white_check_mark: |
|
:white_check_mark: |
|
|
|
|
TS |
Naive Search |
|
|
|
|
|
|
|
|
|
Quick Sort |
|
:white_check_mark: |
:white_check_mark: |
:white_check_mark: |
|
|
|
|
|
Radix Sort |
|
|
|
|
|
|
|
|
|
Selection Sort |
|
:white_check_mark: |
|
:white_check_mark: |
|
|
|
|
|
Sieve of Eratosthenes |
|
:white_check_mark: |
|
|
|
|
|
|
|
Suffix Array |
|
|
|
|
|
|
|
|
|
Shell Sort |
|
:white_check_mark: |
|
|
|
|
|
|
|
Some CP Question
Questions |
CPP |
Java |
Python |
JavaScript |
Golang |
C# |
Other |
Binomial Coefficient |
|
|
|
|
|
|
|
BellmanโFord Algorithm |
|
|
|
|
|
|
|
Coin Change |
|
:white_check_mark: |
|
|
|
|
|
Count ways to reach the nโth stair |
|
|
|
|
|
|
|
Cutting a Rod |
|
|
|
|
|
|
|
Edit Distance |
:white_check_mark: |
|
|
|
|
|
|
Egg Droping Puzzle |
|
|
:white_check_mark: |
|
|
|
|
Knapsack Problem |
:white_check_mark: |
|
|
|
|
|
|
Largest Sum Contiguous Subarray |
|
|
|
|
|
|
|
m Coloring Problem |
|
|
|
|
|
|
|
Pascalโs Triangle |
|
|
|
|
|
|
|
Matrix Chain Multiplication |
:white_check_mark: |
|
|
|
|
|
|
Maximum sum rectangle in a 2D matrix |
|
|
|
|
|
|
|
Min Cost Path |
|
|
|
|
|
|
|
Rod Cutting |
:white_check_mark: |
|
|
|
|
|
|
Partition problem |
|
|
|
|
|
|
|
Subset Sum |
|
|
:white_check_mark: |
|
|
|
|
Tiling Problem |
|
|
|
|
|
|
|
The Knightโs tour problem |
|
|
|
|
|
|
|
Three Sum |
|
|
|
|
|
|
|
Two Sum |
:white_check_mark: |
:white_check_mark: |
|
|
|
|
|
Variations of LIS |
|
|
|
|
|
|
|
Word Wrap Problem |
|
|
|
|
|
|
|
Data Structures Implementations.
Data Structure |
CPP |
Java |
Python |
JavaScript |
Golang |
C# |
Other |
AVL Tree |
|
|
|
|
|
|
|
Binary Search Tree |
:white_check_mark: |
:white_check_mark: |
|
:white_check_mark: |
|
|
|
Binary Tree |
|
|
|
|
|
|
|
Doubly Linked List |
:white_check_mark: |
|
|
|
|
|
|
Graph |
|
|
|
|
|
|
|
Heap |
:white_check_mark: |
|
|
|
|
|
|
Linked List |
:white_check_mark: |
|
|
|
|
|
|
Queue |
:white_check_mark: |
:white_check_mark: |
|
|
|
|
|
Stack |
|
|
|
|
|
|
|
Trie |
:white_check_mark: |
|
|
|
|
|
|
DSU |
:white_check_mark: |
|
|
|
|
|
|
you can add more algorithms, data-structure and cp problems if you like to in the readme file, after you have been assigned to any issue
How to run them ๐จ๐ปโ๐ป
Language |
Steps |
C++ |
g++ ./a.out # unix a.exe # windows |
Java |
javac java |
Python |
python |
JavaScript |
node |
Golang |
go run |
C# |
mcs mono |