Commit Graph

145 Commits

Author SHA1 Message Date
github-actions
8b747e2f7a clang-format and clang-tidy fixes for 5b69ba5c 2020-11-15 20:09:34 +00:00
Kaustubh Damania
5b69ba5c6c Update math/ncr_modulo_p.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-11-16 01:38:24 +05:30
Kaustubh Damania
4741898e2c Update math/ncr_modulo_p.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-11-16 01:38:05 +05:30
Kaustubh Damania
350508f316 Update math/ncr_modulo_p.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-11-16 01:31:14 +05:30
github-actions
f8c9934255 clang-format and clang-tidy fixes for 2ad2f721 2020-11-14 05:54:48 +00:00
Kaustubh Damania
2ad2f7216d Update ncr_modulo_p.cpp 2020-11-14 11:24:01 +05:30
github-actions
ba954d4446 clang-format and clang-tidy fixes for 8111f881 2020-11-13 17:31:31 +00:00
KaustubhDamania
8111f881e4 Add extra namespace + add const& in function arguments 2020-11-13 23:00:20 +05:30
github-actions
8e9803da1e clang-format and clang-tidy fixes for e09a0579 2020-10-22 20:00:54 +00:00
KaustubhDamania
e09a05793b Replace int64_t to uint64_t + add namespace + detailed documentation 2020-10-23 01:29:53 +05:30
github-actions
2ba05ed8ff clang-format and clang-tidy fixes for f6df24a5 2020-10-22 06:37:33 +00:00
KaustubhDamania
f6df24a589 Added all functions inside a class + added more asserts 2020-10-22 12:06:10 +05:30
Kaustubh Damania
e44b7305ce Update math/ncr_modulo_p.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-19 11:19:28 +05:30
KaustubhDamania
bd98630498 feat: Add ncr mod p code (#1323) 2020-10-19 01:56:51 +05:30
Divyajyoti Ukirde
04e0acc3cf feat: added check_factorial (#1155)
* feat: added check_factorial

* updating DIRECTORY.md

* feat: added check_factorial

* review changes

* review changes

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-10-05 08:52:27 -04:00
Filip Hlasek
2882b7bec2 fix: math/fibonacci linter warnings. (#1047)
* fix: math/fibonacci linter warnings.

* updating DIRECTORY.md

* doxygen

* unit64_t instead of unsigned int

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-08-25 18:56:49 -05:00
fzxutar
cc64ca66b0 [Updated] test: add test for fibonacci() function
Fixed the errors as suggested by the author.
2020-08-15 12:51:06 +08:00
fzxutar
4c0b1a76b5 test: add test for fibonacci() function 2020-08-14 19:58:40 +08:00
Filip Hlasek
dcf5fa4241 fix, test: simplification and tests for number_of_positive_divisors (#975)
* fix, test: simplification and tests for number_of_positive_divisors

* Further refactor and documentation of number_of_positive_divisors

* Update the comments.

* Update the LaTeX documentation.
2020-07-24 22:59:49 -04:00
Filip Hlasek
42e1246ffc fix, test: Refactor of sieve_of_eratosthenes (#969)
* fix, test: Refactor of sieve_of_eratosthenes

* Add missing include.

* Modernize the vector initialization.

* Add @details for the documentation.
2020-07-23 07:50:38 -04:00
Filip Hlasek
d58954523f fix: Integer overflow of least_common_multiple. (#970)
* fix: Integer overflow of least_common_multiple.

* Update the typing (linter warning).
2020-07-22 08:01:06 -04:00
Rajiv Ranjan Singh
ebd13a7e24 Improved sieve_of_eratosthenes.cpp (#933)
* Update sieve_of_eratosthenes.cpp

* removed unwanted spaces

* removed init function

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-07-10 11:02:59 -04:00
github-actions
5baf1ad89f formatting source-code for 247301c5b5 2020-07-02 12:48:35 +00:00
Tajmeet Singh
f586ca1b64 docs: fix 2020-07-01 14:56:51 +01:00
Tajmeet Singh
97023e1b1c docs: fixed some documentation issues 2020-06-29 15:27:44 +01:00
github-actions
b1620ff2f5 formatting source-code for e1b1c71e7c 2020-06-25 18:41:27 +00:00
Krishna Vedala
e1b1c71e7c Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-06-25 14:40:47 -04:00
Krishna Vedala
66eb05e0da added wiki link in file brieff 2020-06-25 09:59:36 -04:00
Krishna Vedala
5939792a9d fix self-tests and unsigned comparision to zero
refer #897 and https://lgtm.com/projects/g/TheAlgorithms/C-Plus-Plus/rev/pr-f6e7cda8faf908e87511f30e782190233bdee68c
2020-06-25 09:16:12 -04:00
github-actions
351a1b712a formatting source-code for ca70c3097e 2020-06-25 09:51:24 +00:00
Ayaan Khan
ca70c3097e Merge pull request #894 from iamnambiar/maths-feat
feat: create math/armstrong_number.cpp
2020-06-25 15:20:11 +05:30
Neeraj C
06f425493b fix: changed to std::pow
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-06-25 10:59:44 +05:30
Neeraj C
06ca2a6953 fix: spaces between include and header file
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-06-25 08:00:37 +05:30
Neeraj C
9c75856235 docs: clean the comment
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-06-25 07:59:39 +05:30
github-actions
4c6b3b86c1 formatting source-code for c7ff9d66f1 2020-06-24 17:14:57 +00:00
Neeraj C
5b3e30a937 docs: typo fixed 2020-06-24 20:52:32 +05:30
Neeraj C
5e3307620c feat: create math/armstrong_number.cpp 2020-06-24 20:46:23 +05:30
Panquesito7
f05aadf3b8 fix: Wrong function name 2020-06-23 18:26:47 -05:00
Panquesito7
01c5278911 fix: fibonacci_fast.cpp fixes 2020-06-23 18:22:21 -05:00
Panquesito7
da18b90498 fix: Use #define 2020-06-23 17:53:20 -05:00
Panquesito7
957a05bd0c fix: Convert global variables to local 2020-06-23 17:39:29 -05:00
Panquesito7
48b7773b37 fix: Various LGTM fixes 2020-06-23 16:34:53 -05:00
Ayaan Khan
55fe002c10 Merge pull request #889 from Panquesito7/lgtm_fixes
fix: Various LGTM fixes
2020-06-24 02:18:10 +05:30
Panquesito7
0356a9cdf3 fix: Various LGTM fixes 2020-06-23 15:13:28 -05:00
github-actions
2d4a1dd19f formatting source-code for 1d7a73ea58 2020-06-23 19:34:19 +00:00
Neeraj C
1d7a73ea58 feat: add check_amicable_pair.cpp (#879)
* feat: add check_amicable_pair.cpp

* fix: space between else and brace.

* fix: spaces between tokens

* fix: removed sqrt and test func combined to single

* docs: removed wiki link

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* docs: add markdown syntax for wikipedia link

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* docs: change brief to details in comment

Line 7

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* docs: typo fixed

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* docs: removed extra line

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* docs: removed copyright

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* docs: add author name

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* fix: shortened the code in is_amicable()

Co-authored-by: David Leal <halfpacho@gmail.com>

* fix: changed is_amicable to are_amicable

* docs: cleared unwanted line

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-06-24 01:03:42 +05:30
Krishna Vedala
aeb2bc4e2c Merge pull request #884 from tjgurwara99/master
Feat: Class implementation of complex numbers along with most complex number operations.
2020-06-23 15:02:17 -04:00
Tajmeet Singh
75d8ee7cf0 fix: Readability issues 2020-06-23 19:43:56 +01:00
Tajmeet Singh
9048e19184 fix: cpplint issues 2020-06-23 19:32:05 +01:00
Tajmeet Singh
95320b38a4 fix: cpplint issues 2020-06-23 19:29:11 +01:00