Commit Graph

830 Commits

Author SHA1 Message Date
github-actions
b1d2ad1dfc formatting source-code for b06bbf4dc6 2020-06-24 00:34:33 +05:30
Ayaan Khan
5e63bede6f fixed line spacing 2020-06-24 00:34:33 +05:30
Ayaan Khan
46e07288ba Fixed Bug [munmap_chunck() core dumped] 2020-06-24 00:34:33 +05:30
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
Krishna Vedala
445f6722d8
Merge pull request #885 from kvedala/lgtm_fix
[bug fix] errors reported by lgtm for #880
2020-06-23 12:10:10 -04:00
Krishna Vedala
8575e21e73
fix lint errors 2020-06-23 11:50:12 -04:00
github-actions
56cb22cd44 formatting source-code for 497ede21e0 2020-06-23 15:46:52 +00:00
Krishna Vedala
497ede21e0
fix function return 2020-06-23 11:45:16 -04:00
Krishna Vedala
2fe7e4add0
fix function return + add docs 2020-06-23 11:43:28 -04:00
Krishna Vedala
27a63f5427
Merge pull request #881 from kvedala/fix-large_number.h
bug fix: large number.h
2020-06-23 10:31:26 -04:00
Krishna Vedala
96ed582eb2
Merge pull request #874 from kvedala/minima-algorithm
[feat:] Minima algorithm
2020-06-22 22:48:23 -04:00
Krishna Vedala
db9fa4dd40
Merge pull request #878 from kvedala/brents-method
feat: Brent's method to find extrema
2020-06-22 22:46:18 -04:00
Krishna Vedala
98bcc5df71
Merge pull request #882 from liushubin-gitHub/main
fix: Insert() does not work issue  in binary_search_tree.cpp
2020-06-22 22:44:27 -04:00
liushubin lwx470335
fce7e22d8f binary search tree insert() function modify。
insert the greater value to right,smaller value to left。
2020-06-23 09:06:00 +08: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
58d5f3ea11 updating DIRECTORY.md 2020-06-22 12:05:14 +00: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
Krishna Vedala
98b2609e1b
Merge pull request #871 from kvedala/doc-fixes
[docs] fixed documentations
2020-06-22 07:51:30 -04:00
Krishna Vedala
ef957bae98
removed scaling during assert checks 2020-06-21 23:08:53 -04:00
Krishna Vedala
957fe5c6ce
fixed doc for #define 2020-06-21 23:05:36 -04:00
github-actions
1c4026bca1 updating DIRECTORY.md 2020-06-22 02:31:55 +00:00
Krishna Vedala
db0fc17efb
feat: added brent's mthod to find extrema of a unimodal real function with real variables
Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-06-21 22:30:23 -04:00
Krishna Vedala
744da70bbf
added see-also reference to brents method 2020-06-21 22:28:50 -04:00
liushubin-gitHub
433f129080
Merge pull request #3 from TheAlgorithms/master
sync master branch [2020.06.22]
2020-06-22 09:44:02 +08:00
Krishna Vedala
e71ee9ccb0
better documentation of algorithm 2020-06-21 18:30:31 -04:00
Krishna Vedala
21e93919f3
limit print precision to 9 decimals 2020-06-21 17:50:04 -04:00
Krishna Vedala
9c186095a8
print number of steps taken for convergence 2020-06-21 17:31:53 -04:00
Krishna Vedala
00dda54f4f
ensure search window is increasing and greater than tolerance 2020-06-21 17:12:18 -04:00
matgrz1993
d9fc878962
fix: Remove FenwickTree (#856)
* Remove FenwickTree

FenwickTree is the same Data Structure as Binary Indexed Tree located in file "range_queries/bit.cpp" so it could be removed.

* Fix cpplint errors

* docs: Update documentation

* docs: Update FenwickTree documentation

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-06-22 01:11:08 +05:30
github-actions
0f5e880376 updating DIRECTORY.md 2020-06-21 17:42:10 +00: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
Ayaan Khan
de70c5d864
[Bug Fix] of sorting/heapsort.cpp (#873)
* 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

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-06-21 21:28:00 +05:30
Krishna Vedala
d8e76eda6f
added limits header file 2020-06-21 00:21:54 -04:00
Krishna Vedala
bf2b703131
remove redundant header includes 2020-06-21 00:18:34 -04:00
github-actions
33b8169f41 updating DIRECTORY.md 2020-06-21 04:10:37 +00:00
Krishna Vedala
b5e25f44cf
added minima algorithm using golden section search 2020-06-21 00:09:09 -04:00
Krishna Vedala
4eee4ee7da
enable AlignConsecutiveMacros 2020-06-20 22:16:37 -04:00
Ayaan Khan
edc17ec9e8
Fixed Bug in sorting/merge_sort.cpp (#872)
* 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

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-06-20 23:04:56 +05:30
Neeraj C
f7a8b7a85f
Update math/sum_of_digits.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-06-20 21:09:43 +05:30
Krishna Vedala
00fab77412
set epsilon to 1e-10 and update documentation 2020-06-20 08:26:59 -04:00
Krishna Vedala
5111c2cf59
set author after program details 2020-06-20 08:26:38 -04:00
Krishna Vedala
2ad1b72f6c
make epsilon equal system epsilon 2020-06-20 08:26:26 -04:00
Krishna Vedala
ba2f1ed12d
update documentation 2020-06-20 08:26:15 -04:00
Krishna Vedala
405c4ee254
update image and details section of documentation 2020-06-20 08:25:58 -04:00
Krishna Vedala
69f7c9c6e1
[fix] Enable CI for pull_requests (#864)
* rename awesome workflow

* added new PR workflow - only cpplint and compilation

* simple doc add

* rename PR workflow

* removed cpplint dependency

* try v1 checkout

* remove pr specific CI

* remove dependency to perform git pull

* remove blank line

* remove checkout@master and use v1

* remove hyphen

* remove misplaced with statement

* remove redundant git pull

* try git pull from origin for compile check

* remove git pull altogehter

* use setup-python-v2
2020-06-20 16:57:41 +05:30