Commit Graph

1435 Commits

Author SHA1 Message Date
github-actions
63333f38cc updating DIRECTORY.md 2020-08-25 23:58:06 +00:00
Lownish Rai Sookha
66dcc4c394
feat: add Pigeonhole algorithm (#1028)
* feat: add Pigeonhole algorithm

* Executed clang-format

* Used pointers and vector

* Corrected clang-tidy issues

* Modified code structure

* Apply suggestions from code review

Suggested changes applied

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

* Added missing parameter and documentation

* Added delete function

* Update pigeonhole_sort.cpp

* Corrected delete function

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Changed documentation regarding array size

* clang-tidy

* Apply suggestions from code review

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

* assert moved to test function

* Update pigeonhole_sort.cpp

* Update sorting/pigeonhole_sort.cpp

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

* Added test function and inbuilt min function

* min and max to const variables

* const int* to auto

* const int* to auto

* Apply suggestions from code review

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

* Modified pigeonSort documentation

* Corrected test functions

Co-authored-by: lsurface <lownish@hotmail.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-08-25 18:57:24 -05: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
Krishna Vedala
de868c9faa
[enhancement] guideline for multiple implementations (#1051)
* guideline for multiple implementations

* updating DIRECTORY.md

* fixed spelling

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-08-25 19:20:32 -04:00
github-actions
149fe0cd63 updating DIRECTORY.md 2020-08-25 12:23:25 +00:00
Ayaan Khan
0dad6265f8
Merge pull request #1050 from verma-anushka/cpp
fix typo: (rename file) fast_interger_input -> fast_integer_input
2020-08-25 17:48:06 +05:30
Anushka Verma
47bbc2a16e remove word break 2020-08-24 01:54:17 +05:30
Anushka Verma
7a13a35dfd feat: add word break solution (backtracking) 2020-08-24 01:47:16 +05:30
Anushka Verma
039022becf fix typo: (rename file) fast_interger_input -> fast_integer_input 2020-08-24 01:19:39 +05:30
Ayaan Khan
f308a05a87
Merge pull request #1045 from Rp-sushil/rp
[BUG] #804 search/median_search.cpp FIXED
2020-08-23 16:57:06 +05:30
Sushil Kumar
b50591dfce
Suggested changes has been made. 2020-08-23 15:49:52 +05:30
Sushil Kumar
a1242904e1
repeated constraints removed. 2020-08-23 00:37:46 +05:30
Sushil Kumar
37b252697d
test added 2020-08-23 00:29:00 +05:30
Sushil Kumar
306de24e70
Suggested changes has been made. 2020-08-22 02:39:13 +05:30
Sushil Kumar
498db114f3
updated median_search (#962 as reference) 2020-08-22 02:22:47 +05:30
Sushil Kumar
caed3ddadd
Changed has been made (#962 as a reference) 2020-08-22 01:53:54 +05:30
Sushil Kumar
b631eee388
added a comment block like in #962. 2020-08-21 23:47:07 +05:30
Sushil Kumar
406ad387db
Suggested changes has been made. 2020-08-21 12:08:06 +05:30
Sushil Kumar
0d61b0494f
fixed clang-tidy warnings 2020-08-21 10:45:00 +05:30
Rp-sushil
1433ef2210 [BUG] #804 search/median_search.cpp FIXED 2020-08-20 17:21:30 +05:30
Aniruthan R
416a3bc169
Added heavy_light_decomposition.cpp (#1016)
* Added heavy_light_decomposition.cpp

* Update range_queries/heavy_light_decomposition.cpp

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

* Update range_queries/heavy_light_decomposition.cpp

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

* Update range_queries/heavy_light_decomposition.cpp

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

* Added function documentation

TODO: Data member documentation.

* Update heavy_light_decomposition.cpp

* Update heavy_light_decomposition.cpp

* Corrected typos, and remove comma

* Corrected typos, and removed comma

* Edited comments

* Update range_queries/heavy_light_decomposition.cpp

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

* Added wiki

* Create c-cpp.yml

* updating DIRECTORY.md

* Delete c-cpp.yml

* Added namespace, Removed quoted @params

* updating DIRECTORY.md

* clang-tidy fixes for 25f16d7483

* Update heavy_light_decomposition.cpp

* Update heavy_light_decomposition.cpp

* Apply suggestions from code review

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

* Edited Comments

* clang-tidy fixes for 07b46bbd9d

* Apply suggestions from code review

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

* Fixed markdown

* Apply suggestions from code review

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

* Edited comments

* Update heavy_light_decomposition.cpp

* Update heavy_light_decomposition.cpp

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Added data member documentation

* Formatted Code

* Edited data member comments

* Update range_queries/heavy_light_decomposition.cpp

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

* Update heavy_light_decomposition.cpp

* Added testcase verification

* Update heavy_light_decomposition.cpp

* Added a new test case

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-08-19 14:40:46 -05:00
Deep Raval
4a34bec125
feat: Add Neural Network (Multilayer Perceptron) (#1025)
* Completed NN

* Made changes

* Added return in identity function

* Added <random> and fixed namespace naming

* clang-tidy changes

* Update machine_learning/neural_network.cpp

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

* Update machine_learning/neural_network.cpp

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

* Update machine_learning/neural_network.cpp

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

* Update machine_learning/vector_ops.hpp

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

* Update machine_learning/vector_ops.hpp

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

* Update machine_learning/neural_network.cpp

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

* Update machine_learning/neural_network.cpp

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

* added std::cerr and changed argmax's namespace

* Done suggested changes

* Fixed a comment

* clang-tidy fixes

Co-authored-by: David Leal <halfpacho@gmail.com>
2020-08-19 15:25:32 -04:00
Ayaan Khan
dfe5bd7638
Merge pull request #986 from fhlasek/fixgraph
fhlasek/fixgraph: refactor of graph/ to follow the linter style
2020-08-19 10:30:16 +05:30
Filip Hlásek
c1a2e33f2f Adjust comment. 2020-08-17 20:10:03 -07:00
ridhishjain
3741b41a8a
feat: add shortest common super-sequence algorithm (#1030)
* main cpp file for shortest common supersequence

* fixing reverse function bug

* converting c style array to std::vector

* removing namespace directives

* adding documentation and test cases

* namespace declarations

* update shortest_common_supersequence.cpp

* update shortest_common_supersequence.cpp

* Update dynamic_programming/shortest_common_supersequence.cpp

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

* Update dynamic_programming/shortest_common_supersequence.cpp

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

* Update dynamic_programming/shortest_common_supersequence.cpp

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

* update shortest_common_supersequence.cpp

* update shortest_common_supersequence.cpp

* update shortest_common_supersequence.cpp

* Update dynamic_programming/shortest_common_supersequence.cpp

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

* updating DIRECTORY.md

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-08-17 09:38:14 -04:00
github-actions
9927b46205 updating DIRECTORY.md 2020-08-17 06:36:56 +00:00
Filip Hlásek
befec35474 Merge branch 'master' into fixgraph 2020-08-16 23:36:05 -07:00
Filip Hlásek
990e578abe Merge remote-tracking branch 'upstream/master' 2020-08-16 23:34:55 -07:00
Filip Hlasek
36f1d3327b
fix: linter for kosaraju (#1035)
* fix: linter for kosaraju

* update doxygen parameters
2020-08-16 23:43:33 -05:00
Filip Hlasek
91ce393c45
fix: linter for kruskal (#1036)
* fix: linter for kruskal

* using instead of typedef.
2020-08-17 00:23:29 -04:00
David Leal
d8b4da68bf
Merge pull request #1027 from rishabh-997/jarvis
Added Jarvis Algorithm to compute convex hull
2020-08-16 19:14:03 -05:00
rishabh-997
bf610fb91d Added Jarvi algo to find convex hull 2020-08-17 02:46:38 +05:30
rishabh-997
d21f56e836 Added Jarvi algo to find convex hull 2020-08-17 02:36:30 +05:30
github-actions
d50f1c67c8 updating DIRECTORY.md 2020-08-16 19:33:27 +00:00
github-actions
78ecea3274 updating DIRECTORY.md 2020-08-16 19:32:56 +00:00
Filip Hlásek
604945be3b Merge branch 'master' into fixgraph 2020-08-16 12:32:16 -07:00
David Leal
5aa074c88b
Merge pull request #1034 from fhlasek/connected_components
fix: linter for connected_components.
2020-08-16 13:53:53 -05:00
Ayaan Khan
327a4f57d6
Merge pull request #1033 from fhlasek/dijkstra
fix: linter for dijkstra
2020-08-17 00:20:44 +05:30
Rishabh Agarwal
bfed4c8fba
Update geometry/jarvis_algorithm.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-08-16 22:26:13 +05:30
Rishabh Agarwal
ff4792d369
Update geometry/jarvis_algorithm.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-08-16 22:12:56 +05:30
Rishabh Agarwal
686ceb3cfa
Update geometry/jarvis_algorithm.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-08-16 22:12:37 +05:30
David Leal
9adf7f465c
Merge pull request #1023 from fzxutar/master
test: add test for fibonacci() function
2020-08-16 11:36:15 -05:00
David Leal
591c47ee12
Merge pull request #1018 from AkVaya/master
Added is_graph_bipartite.cpp
2020-08-16 11:32:02 -05:00
Filip Hlásek
2c41598e37 fix: linter for connected_components. 2020-08-15 15:57:45 -07:00
Filip Hlásek
c1961d7c2b fix: linter for dijkstra 2020-08-15 15:54:16 -07:00
rishabh-997
e59559af0f Added jarvis algorithm 2020-08-15 13:05:28 +05:30
rishabh-997
c6c5d81f1b Added Jarvis Algorithm to compute convex hull
Fixed code formatting

Fixed code formatting

Fixed code formatting

Added Jarvis algorithm to compute convex hull

Capitalized class name

Added requested changes

Added requested changes

Added jarvis algorithm

Added jarvis algorithm to compute convex hull
2020-08-15 13:00:29 +05:30
AkVaya
fd6b810061 Performed the requested changes 2020-08-15 10:58:51 +05:30
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
Filip Hlásek
efbcaf253d Merge branch 'master' into fixgraph 2020-08-14 16:47:21 -07:00