Commit Graph

771 Commits

Author SHA1 Message Date
Anup Kumar Panwar
400a28499e
Merge pull request #741 from deadshotsb/master
Create n_queens_all_solution_optimised.cpp
2020-05-22 23:44:32 +05:30
Anup Kumar Panwar
3a2812aa3d
Merge pull request #743 from kvedala/ols_linear-regressor
linear regression using ordinary lease squares
2020-05-22 23:43:43 +05:30
github-actions
a4e1d4c6c1 updating DIRECTORY.md 2020-05-22 14:14:06 +00:00
Aashish
77ba693cea
Create topological_sort_by_kahns_algo.cpp (#778)
* Create topological_sort_by_kahns_algo.cpp

implementation of topological sorting by kahn's algo

* Update topological_sort_by_kahns_algo

put c system headers before c++ system headers

* Update  topological_sort_by_kahns_algo.cpp

improves syntax (tabs/whitespaces etc)

* Update topological_sort_by_kahns_algo.cpp

removed errors

* Update graph/topological_sort_by_kahns_algo.cpp

improved syntax

Co-authored-by: Christian Clauss <cclauss@me.com>

* Fix indentation

* Fix include order

Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-22 16:13:50 +02:00
github-actions
2ebeb3673b updating DIRECTORY.md 2020-05-22 10:15:46 +00:00
Amit Kumar
62b8c5162b
feat: added rabin_karp algorithm for string match (#779)
* feat: added rabin_karp algorithm for string match

* feat: added rabin_karp algorithm for string match

* feat: added rabin_karp algorithm for string match

* Update rabin_karp.cpp

Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-22 12:15:29 +02:00
github-actions
8978cd0653 updating DIRECTORY.md 2020-05-22 10:14:37 +00:00
Ayaan Khan
721f7000e2
Merge pull request #772 from SamratDe/fix-issue
fix #765: Doubly Linked List algorithm bug
2020-05-22 15:44:17 +05:30
Samrat De
c18c3c129a wrapped all the functions inside a class 2020-05-22 09:23:02 +05:30
Samrat De
90c246035f wrapped all the functions inside a class 2020-05-22 09:21:03 +05:30
Samrat De
3df1f82bf6 wrapped all the functions inside a class 2020-05-22 09:14:31 +05:30
Samrat De
a67f9278e3 wrapped all the functions inside a class 2020-05-22 09:11:56 +05:30
Samrat De
e5af368065 wrapped all the functions inside a class 2020-05-22 09:07:04 +05:30
github-actions
ea98ef48bc updating DIRECTORY.md 2020-05-21 20:49:02 +00:00
Dylan Robertson
c07bea4562
feat: added poisson_dist.cpp (#739)
* added poisson_dist.cpp

* https://en.wikipedia.org/wiki/Poisson_distribution

Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-21 22:48:44 +02:00
github-actions
375298f113 updating DIRECTORY.md 2020-05-21 20:45:15 +00:00
Ayaan Khan
f956bd6ba4
Merge pull request #773 from coderanant/master
feat: add algo to find no of connected components with Union Find Structure
2020-05-22 02:14:57 +05:30
coderanant
d3b60e0de8 fix: dynamically allocate all arrays 2020-05-22 01:06:40 +05:30
coderanant
19be84cf58 fix bug 2020-05-22 00:49:03 +05:30
coderanant
3f87fcc4b6 feat: add algorithm to check number of components with the help of Union Find Structure 2020-05-21 23:29:52 +05:30
github-actions
f4e94eed88 updating DIRECTORY.md 2020-05-21 15:26:08 +00:00
Himanshu Airan
17b8deec06
Create Prim.cpp (#750)
* Create Prim.cpp

Created file for Prim's Algorithm in graph that was still missing.

* Update Prim.cpp

Edited indentation part

* Update Prim.cpp

indentation updated

* Update Prim.cpp

Indentation updated

* Rename Prim.cpp to prim.cpp

Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-21 17:25:53 +02:00
Samrat De
74fc841f10 handled all automated failing tests 2020-05-21 19:46:40 +05:30
Samrat De
d90fdf8282 handled all automated failing tests 2020-05-21 19:40:07 +05:30
Samrat De
f55c76d0fb fix: Doubly Linked List algorithm bug 2020-05-21 17:32:51 +05:30
Ayaan Khan
d963df6fa6
Merge pull request #768 from pastor-robert/master
fix: sqrt_double hangs on x < 1 (#760)
2020-05-21 15:23:29 +05:30
Rob Adams
51eb5beab5 fix: sqrt_double hangs on x < 1 (#760) 2020-05-20 03:05:03 +00:00
github-actions
d079d1fda4 updating DIRECTORY.md 2020-05-19 18:57:16 +00:00
mishraabhinn
eaf2ebd544
SwapSort.cpp (#754)
* Create Swap Sort(Minimum)

* Update Swap Sort(Minimum)

* Update Swap Sort(Minimum)

* Rename Swap Sort(Minimum) to SwapSort.cpp

* Update SwapSort.cpp

* Update SwapSort.cpp

* Update SwapSort.cpp

* Rename SwapSort.cpp to swap_sort.cpp

Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-19 20:56:59 +02:00
github-actions
52f46c5b61 updating DIRECTORY.md 2020-05-19 15:50:31 +00:00
vonzo
03664deca9
Fibonacci funtion added (#767)
* finbonacci funtion added

* finbonacci funtion added

* finbonacci funtion added

* finbonacci funtion added

* Update fibonacci.cpp

Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-19 17:50:15 +02:00
github-actions
a11c09e6ba updating DIRECTORY.md 2020-05-19 06:45:56 +00:00
Sombit Bose
eaa6a392f1
Merge pull request #761 from ayaankhan98/master
Connected Components using DFS
2020-05-19 12:15:41 +05:30
github-actions
22ee86d69b updating DIRECTORY.md 2020-05-19 04:59:55 +00:00
floan
f4eacb3fd7
feat: added a function to get the size of a linked list (#763)
* feat: added a function to get the size of a linked list

* Update get_size_of_linked_list.cpp

Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-19 06:59:38 +02:00
Srujan Bharadwaj
de65e2b256
Create extended_euclid_algorithm.cpp (#759)
* Create extended_euclid_algorithm.cpp

* Fix wihitespaces and fix if else space issues

* Update extended_euclid_algorithm.cpp

* updating DIRECTORY.md

* Update extended_euclid_algorithm.cpp

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-05-18 14:32:42 +02:00
Ayaan Khan
4df1a27825 Fixed cpplint errors 2020-05-18 17:11:15 +05:30
Ayaan Khan
c936a6d87e cpplint fix 2020-05-18 17:04:35 +05:30
Ayaan Khan
cd9f5cd584 somemore cpplint fixing 2020-05-18 16:57:00 +05:30
Ayaan Khan
4c6c1dbe40 cpplint fixing 2020-05-18 16:48:26 +05:30
Ayaan Khan
6392099cab Connected Components using DFS 2020-05-18 16:14:51 +05:30
github-actions
0b6f8ff7d3 updating DIRECTORY.md 2020-05-14 23:21:24 +00:00
John Law
3ee7ae2146
Add mod_inverse_by_fermat_theorem.cpp in math directory
Added mod_inverse_by_fermat_theorem.cpp in math directory.
2020-05-15 01:20:56 +02:00
Krishna Vedala
9cd7e0f4e7
fixed cpplint issues 2020-05-11 21:35:25 -04:00
John Law
264a26e15a
Fix spacing 2020-05-11 00:55:16 +02:00
John Law
8f41e1704d
Rename mod_inverse_by_fermat_theorem.cpp to modular_inverse_fermat_little_theorem.cpp 2020-05-11 00:54:45 +02:00
Mann Mehta
c9fc01af7a Resolve line length errors in math/mod_inverse_by_fermat_theorem.cpp 2020-05-09 17:33:08 +05:30
Mann Mehta
563e29acae Resolve errors in math/mod_inverse_by_fermat_theorem.cpp 2020-05-09 17:31:48 +05:30
Mann Mehta
78eecf75eb Modified the math/mod_inverse_by_fermat_theorem.cpp 2020-05-09 17:27:29 +05:30
John Law
409625656d
Fix descriptive comment 2020-05-08 22:45:38 +02:00