Commit Graph

148 Commits

Author SHA1 Message Date
chestamittal
288d3582b6 Update math/lcm_sum.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-10-24 22:25:42 +05:30
chestamittal
997404b48a Update math/lcm_sum.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-10-22 01:35:14 +05:30
chestamittal
1af94ccf6f
Update math/lcm_sum.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-10-21 22:15:06 +05:30
chestamittal
b1e2d1ed8e Update math/lcm_sum.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-10-20 15:14:41 +05:30
chestamittal
e466714e27
Update math/lcm_sum.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-10-20 14:19:15 +05:30
chestamittal
c7912e7b1b Update math/lcm_sum.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-20 03:07:45 +05:30
chestamittal
1ebb42185f
Update math/lcm_sum.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-20 03:03:03 +05:30
chestamittal
c89a0e3bf0
Update math/lcm_sum.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-20 03:02:50 +05:30
chestamittal
1c7fe26285
Update math/lcm_sum.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-20 03:02:41 +05:30
chestamittal
0978680880
Update math/lcm_sum.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-20 03:02:32 +05:30
chestamittal
2db80b5066
Update math/lcm_sum.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-20 03:02:21 +05:30
chestamittal
403f44d924
Update math/lcm_sum.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-20 03:02:11 +05:30
chestamittal
6dc89cc441 Update math/lcm_sum.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-20 01:43:59 +05:30
chestamittal
261960cfb0
Update math/lcm_sum.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-20 01:39:58 +05:30
chestamittal
1e1d11d03e
Update math/lcm_sum.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-20 01:39:35 +05:30
chestamittal
d817968d1a
Update math/lcm_sum.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-20 01:39:23 +05:30
chestamittal
2854a463e1 add lcm_sum.cpp 2020-10-20 01:04:17 +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