Commit Graph

124 Commits

Author SHA1 Message Date
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
Tajmeet Singh
bcd5df725d feat: added polar form initialisation to our Complex class 2020-06-23 19:23:15 +01:00
Ayaan Khan
2aec4efdd3
fix: integer overflow due to multiplication fixed (#886)
* formatting source-code for 72c365dcd3

* Fixed Bug [munmap_chunck() core dumped]

* formatting source-code for b06bbf4dc6

* fixed line spacing

* fixed line spacing

* fixed documentation

* closed the paranthesis of line 3

* formatting source-code for 8233eda889

* Bug Fix heap sort [Fresh Implementation]

* formatting source-code for e464ddac36

* Bug Fix heap sort [Fresh Implementation]

* formatting source-code for 803981c831

* switched to normal functions from lambda

* formatting source-code for ced5dcd6c4

* Added template and test cases

* formatting source-code for 7c8617fa46

* fixed docs

* fixed line spacing in tests

* fix docs

* Multiplication result may overflow 'int' before it is converted to 'long'.

* fixed cpplint long -> int64

* fixed compiler error

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-06-23 23:50:45 +05:30
Tajmeet Singh
61084adbd3 fix: fixed forgotten namespace 2020-06-23 18:16:26 +01:00
Tajmeet Singh
ce81700380 fix: added missing header for std::time 2020-06-23 18:04:42 +01:00
Tajmeet Singh
907b829830 docs: copyright message 2020-06-23 18:00:53 +01:00
Tajmeet Singh
b9658104cb fix: Taken onboard some suggested changes 2020-06-23 17:56:53 +01:00
Tajmeet Singh
52f918a4ff fix: Fixed issue with Windows CI test - M_PI doesn't work on Windows CI 2020-06-23 16:33:54 +01:00
Tajmeet Singh
1708de2296 fix: fixed all pull request suggestions 2020-06-23 16:23:49 +01:00
Tajmeet Singh
c419e1f788 fix: arrow operator instead of dot 2020-06-23 14:54:10 +01:00
Tajmeet Singh
626ab31095 fix: incorrect constructor delegation 2020-06-23 14:53:09 +01:00
Tajmeet Singh
8969047d3f fix: Added missing header 2020-06-23 14:41:46 +01:00
Tajmeet Singh
f4fa366da5 docs: Fixed some clangformat issues with the documentation 2020-06-23 14:32:08 +01:00
Tajmeet Singh
1158e626cb feat: Added a class implemetation of complex numbers along with implementation of all (most) binary operations involved with complex numbers. 2020-06-23 14:29:48 +01:00
Krishna Vedala
8736dce71a
make multiplication 64-bit 2020-06-22 16:21:57 -04:00
Krishna Vedala
fb82e9050d
remove const identifier for function 2020-06-22 16:20:27 -04:00
Krishna Vedala
8862859c18
remove const identifier 2020-06-22 16:19:59 -04:00
Krishna Vedala
bebb76e557
make 'a' signed 2020-06-22 16:19:17 -04:00
github-actions
c563fc6694 formatting source-code for 9bc80876e8 2020-06-22 12:05:13 +00:00
Krishna Vedala
9bc80876e8
Merge pull request #855 from iamnambiar/master
feat: add sum of digits
2020-06-22 08:04:12 -04:00
github-actions
bbe1ff1286 formatting source-code for a48d05fb62 2020-06-21 17:42:09 +00:00
Taj
a48d05fb62
feat: Added a probabilistic Miller-Rabin Primality Test (#845)
* feat: Added a probabilitic Miller-Rabin Primality test

* docs: Documentation Changes

* fix: Issue with the assert call

* docs: grammatical error

* docs: corrected the copyright comment

* docs: Fixed some documentation issues.

* docs: fix latex issues

* docs and fix: Fixed documentation issues and vector by const reference and iterator over const reference.

* docs: fixed latex documentation issue.

* docs: spelling errors

* docs: spelling error fixed
2020-06-21 23:10:57 +05:30