Gpamangkp
baffac80ad
fix : reused the namespace, improved documentation
...
1. Included the graph definition in the namespace graph
2. Added documentation for the breadth-first search function
2020-10-23 08:30:13 +05:30
Sagar Pandya
8a24e44a4c
fix: Issue in list_array.cpp resolved ( #1342 )
...
* Exit code added to exit from infinite loop
* fix typos and resolve all clang-tidy warnings
* changed C type array style and changed code accordingly in list_array.cpp
* pass const array to resolve clang-tidy error in list_array.cpp
* Update newline in list_array.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-22 12:40:22 -05:00
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
Neha Hasija
137c444398
Update math/magic_number.cpp
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-21 23:37:39 +05:30
Neha Hasija
534dacae35
Update math/magic_number.cpp
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-21 23:37:27 +05:30
Neha Hasija
6359899caa
Update math/magic_number.cpp
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-21 23:37:16 +05:30
Neha Hasija
bbb182c42b
Update math/magic_number.cpp
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-21 23:37:05 +05:30
Neha Hasija
7643a23359
Update math/magic_number.cpp
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-21 23:36:54 +05:30
Neha Hasija
388ee00985
Update math/magic_number.cpp
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-21 23:06:37 +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
Tsung-Han Ho
b1079da17d
feat: add cycle sort algorithm ( #1252 )
...
* feat: add cycle sort algorithm
* feat: add cycle sort algorithm
* feat: add cycle sort algorithm
* feat: add cycle sort algorithm
* feat: add cycle sort algorithm
* feat: add cycle sort algorithm
* feat: add cycle sort algorithm
* updating DIRECTORY.md
* Add namespace decription
* fix: add assert and template
* fix: add some comment
* fix: update some suggested changes
* fix: update some suggested changes
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-10-21 11:07:53 -04:00
Gpamangkp
2e5c68a54e
included referenced variable to avoid repitition
2020-10-21 11:09:48 +05:30
Gpamangkp
651c269317
Modified the code as per the suggestions
2020-10-21 11:04:34 +05:30
Neha Hasija
a19da79545
Update math/magic_number.cpp
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-21 10:41:16 +05:30
github-actions
1e6c2d5aa0
clang-format and clang-tidy fixes for 45dc7176
2020-10-21 05:10:05 +00:00
Neha Hasija
45dc717621
Update math/magic_number.cpp
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-21 10:38:02 +05:30
Neha Hasija
7672e3998c
Update math/magic_number.cpp
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-21 10:37:51 +05:30
Neha Hasija
676db2e57b
Update math/magic_number.cpp
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-21 10:37:32 +05:30
gpamangkp
b5cbf0e84a
Modified the source for wider range of inputs
...
1. Replaced the namespace with a generic class Graph
2. Created add edge function to account for both directional and bidirectional graph
3. test case to include string nodes also
2020-10-21 10:25:43 +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
x0rld
234a29939a
fix: remove using namespace std ( #1264 )
...
Remove `using namespace std;` in greedy_algorithms/kruskals_minimum_spanning_tree.cpp
* remove using namespace std
* change static C array to vector
* change vector to array and remove global variable
2020-10-19 16:40:03 -05:00
github-actions
ed033c38b3
updating DIRECTORY.md
2020-10-19 21:39:00 +00:00
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
Deep Raval
7f97119f8a
feat: Added Morse Code ( #1322 )
...
* Added Morse Code
* updating DIRECTORY.md
* clang-format and clang-tidy fixes for 7ff8c973
* Update ciphers/morse_code.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update ciphers/morse_code.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update ciphers/morse_code.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update ciphers/morse_code.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update ciphers/morse_code.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update ciphers/morse_code.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update ciphers/morse_code.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-19 16:25:28 -05:00
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
David Leal
2c13a7a376
[fix/docs]: Improve backtracking/n_queens_all_solution_optimised.cpp ( #1041 )
...
* updating DIRECTORY.md
* [fix/docs]: Improve backtracking/n_queens_...
...all_solution_optimised.cpp
* fix: Remove function-like macros
* clang-format and clang-tidy fixes for 689b788c
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-10-19 14:59:20 -05:00
chestamittal
2854a463e1
add lcm_sum.cpp
2020-10-20 01:04:17 +05:30
David Leal
7c64998d42
[fix/docs]: Improve CONTRIBUTING.md ( #1300 )
...
* [fix/docs]: Improve CONTRIBUTING.md
* fix: Add suggested changes
2020-10-19 08:34:13 -04:00
Neha Hasija
fe538baac4
Update math/magic_number.cpp
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-19 01:52:20 +05:30
github-actions
a6b57f8896
clang-format and clang-tidy fixes for db3f6944
2020-10-18 20:14:12 +00:00
github-actions
581715db04
updating DIRECTORY.md
2020-10-18 20:13:56 +00:00
Neha Hasija
db3f694490
Update math/magic_number.cpp
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-19 01:42:47 +05:30
Neha Hasija
f03910abdc
Update math/magic_number.cpp
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-19 01:42:38 +05:30
Neha Hasija
579a290acb
Update math/magic_number.cpp
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-19 01:42:31 +05:30
Deep Raval
981f781d09
docs: Imporoved Documentation in neural_network.cpp ( #1331 )
2020-10-18 14:20:12 -05:00
Pardeep Bhatt
3206660bcd
added documentation in dynamic_programming/0_1_knapsack.cpp
( #1207 )
...
* added docs
* algorithm added in comments
* Update dynamic_programming/0_1_knapsack.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
* Update dynamic_programming/0_1_knapsack.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
* Update dynamic_programming/0_1_knapsack.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
* Update dynamic_programming/0_1_knapsack.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
* updated template parameter
* Update dynamic_programming/0_1_knapsack.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update dynamic_programming/0_1_knapsack.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update dynamic_programming/0_1_knapsack.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update dynamic_programming/0_1_knapsack.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-10-18 13:23:56 -05:00
Neha Hasija
e3f6382219
Create magic_number.cpp
...
This Pull Request is for HacktoberFest 2020
2020-10-17 19:31:30 +05:30
Krishna Vedala
79b98cc905
feat: guidelines for reviewers ( #1302 )
...
* Create REVIEWER_CODE.md
* added heading
2020-10-16 16:18:38 -04:00
divyansh12323
5731bcd6fc
feat: Add Pancake Sort algorithm ( #1189 )
...
* Create pancake_sort.cpp
* Update pancake_sort.cpp
* Update pancake_sort.cpp
* Update pancake_sort.cpp
* Update pancake_sort.cpp
* Update pancake_sort.cpp
* Update pancake_sort.cpp
* Update pancake_sort.cpp
* Update pancake_sort.cpp
* updating DIRECTORY.md
* Update pancake_sort.cpp
* Update pancake_sort.cpp
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-10-16 15:06:21 -05:00
Akshay Anand
34a6faf401
adding word break DP approach ( #1278 )
...
* adding word break DP approach
* fixing formatting
* fixing linting issues
* adding documentation and other enhancements
* Update dynamic_programming/word_break.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update dynamic_programming/word_break.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update dynamic_programming/word_break.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update dynamic_programming/word_break.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update dynamic_programming/word_break.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* clang-format and clang-tidy fixes for 061c21ae
* docs: fixed documentation
* Update dynamic_programming/word_break.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update dynamic_programming/word_break.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update dynamic_programming/word_break.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update dynamic_programming/word_break.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update dynamic_programming/word_break.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* clang-format and clang-tidy fixes for d8ab6b02
* Update dynamic_programming/word_break.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
* clang-format and clang-tidy fixes for 05d7ca14
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-10-16 15:54:42 -04:00