├── src ├── trie.cpp ├── graph-1.cpp ├── graph-2.cpp ├── graph-3.cpp ├── graph-5.cpp ├── graphs-4.cpp ├── resources.md ├── Data-Structures │ ├── list.cpp │ ├── graph-2.cpp │ ├── graphs-1.cpp │ ├── graphs.cpp │ ├── queue.cpp │ ├── stack.cpp │ ├── binary-tree.cpp │ └── readme.md ├── sort-1-merge-sort.cpp ├── sort-2-quick-sort.cpp ├── sort-3-bubble-sort.cpp ├── divide-and-conquer │ └── merge-sort.cc ├── dynamic-standard-problems │ ├── Hackerrank-1.cpp │ ├── coin-change.cpp │ ├── coin-change-modified.cpp │ └── travelling-salesman-problem.cpp ├── mathematics │ └── readme ├── heap.cpp ├── greedy-standard-problems │ └── huffman-coding.py └── miscellaneous │ └── neighbor.cpp ├── Headers ├── Queue.hpp ├── find.hpp ├── graph.hpp ├── heap.hpp ├── mst.hpp ├── o-bst.hpp ├── point.hpp ├── stack.hpp ├── binary-tree.hpp └── list.hpp ├── pendings ├── ROBOTS.TXT ├── travis.yaml ├── LICENSE └── README.md /src/trie.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Headers/Queue.hpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Headers/find.hpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Headers/graph.hpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Headers/heap.hpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Headers/mst.hpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Headers/o-bst.hpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Headers/point.hpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Headers/stack.hpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /pendings: -------------------------------------------------------------------------------- 1 | s 2 | ss 3 | -------------------------------------------------------------------------------- /src/graph-1.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/graph-2.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/graph-3.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/graph-5.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/graphs-4.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/resources.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Headers/binary-tree.hpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /ROBOTS.TXT: -------------------------------------------------------------------------------- 1 | ROBOTS.TXT 2 | -------------------------------------------------------------------------------- /src/Data-Structures/list.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sort-1-merge-sort.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sort-2-quick-sort.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sort-3-bubble-sort.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/Data-Structures/graph-2.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/Data-Structures/graphs-1.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/Data-Structures/graphs.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/Data-Structures/queue.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/Data-Structures/stack.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/Data-Structures/binary-tree.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/divide-and-conquer/merge-sort.cc: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/dynamic-standard-problems/Hackerrank-1.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/dynamic-standard-problems/coin-change.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /travis.yaml: -------------------------------------------------------------------------------- 1 | 2 | language=cpp 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/dynamic-standard-problems/coin-change-modified.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/dynamic-standard-problems/travelling-salesman-problem.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/Data-Structures/readme.md: -------------------------------------------------------------------------------- 1 | https://github.com/Jishanshaikh4/lib-algo 2 | -------------------------------------------------------------------------------- /Headers/list.hpp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/mathematics/readme: -------------------------------------------------------------------------------- 1 | This branch will consider holding important lib-math source files and headers; that should be in an algorithmic library. 2 | -------------------------------------------------------------------------------- /src/heap.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | ios_base::sync_with_stdio(0); 5 | std::cin.tie(0); 6 | std::cout << "robots.txt" << "\n"; 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /src/greedy-standard-problems/huffman-coding.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | def Huffman(s): 4 | p = s 5 | # Code in python 6 | print(p) 7 | 8 | s = "Secret Text" 9 | Huffman(s) 10 | 11 | -------------------------------------------------------------------------------- /src/miscellaneous/neighbor.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | 5 | int main(){ 6 | int t; 7 | cin >> t; 8 | while(t--){ 9 | int n, tempsum; 10 | cin >> n; 11 | vector a(n); 12 | vector temp; 13 | vector maxarray; 14 | for(int i=0; i> a[i]; 16 | } 17 | int maxsum = 0; 18 | for(int i=0; i maxsum){ 28 | maxsum = tempsum; 29 | int length = temp.size(); 30 | for(int m=0; m