? Data-Structures-Algorithm ?
- This repo contains solutions for famous coding questions with a gist of data-structures and approach used.
- All the questions choosen have unique approaches.
- This repo later can also be used for revision purpose during placements.
Contribute
Write any algorithm of your choice in c++ only.
Steps to follow :
- Create an algorithm file with algorithm name. For example for kruskal algorithm create file like kruskal_algorithm.cpp
- Write the approach for the problem and then code it.
- Add that file in the folder of that particular topic. For example kruskal algorithm will go in Graph folder.
- Open a pull request.
Table of Contents
- Arrays
- Binary_Search
- Dynamic_Programming
- Graph
- Greedy
- Linked_List
- Sliding_Window
- Strings
- Trees
Arrays
All Arrays related programs are present here.
• Start
• Kadane's Algorithm
Binary_Search
All Binary Search programs are present here.
• Start
• Binary Search
Dynamic_Programming
All DP programs are present here.
• Start
Graph
All Graph related programs are present here.
• Kruskal's Algorithm
Greedy
All Greedy Algorithm related programs are present here.
• Start
• Find_Minimum_Number_of_coins
Linked_List
All Linked List programs are present here.
• Start
Sliding_Window
All Sliding Window programs are present here.
• Start
Strings
All Strings related programs are present here.
• Start
Trees
All Trees related programs are present here.
• Start
Criteria for getting your PR merged
Steps to follow :
- Give a bruteforce approach
- Design an optimised approach with its intuition
- Submit the code of optimised approach
Happy Coding !!
Keep learning.