Commit Graph

1504 Commits

Author SHA1 Message Date
Jxtopher
f889fb4fb1 Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-15 12:13:34 +02:00
Jxtopher
c0b471ee30 Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-15 12:13:28 +02:00
Jxtopher
9ac4902940 Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-15 12:13:21 +02:00
Jxtopher
07ab251e5f Update magic_sequence.cpp 2021-07-14 08:34:29 +02:00
Jxtopher
a589829314 Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-14 08:16:07 +02:00
Jxtopher
0a8c1d3f91 Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-14 08:14:33 +02:00
Jxtopher
95d18ce1e5 Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-14 08:13:18 +02:00
Jxtopher
6663406f53 Update magic_sequence.cpp 2021-07-13 23:19:18 +02:00
Jxtopher
13a65a6af5 Update magic_sequence.cpp 2021-07-13 23:16:37 +02:00
Jxtopher
9fcb7ce010 Update magic_sequence.cpp 2021-07-13 23:07:14 +02:00
Jxtopher
d4fda2e75f Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-13 22:58:05 +02:00
Jxtopher
6ec8ac0097 Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-13 22:57:23 +02:00
Jxtopher
c39b7a0ccd Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-13 22:56:25 +02:00
Jxtopher
ddd543761f Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-13 22:56:16 +02:00
Jxtopher
647a3c4a2e Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-13 22:56:08 +02:00
Jxtopher
f713beb132 Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-13 22:56:00 +02:00
David Leal
0878288a11 Update backtracking/magic_sequence.cpp 2021-07-13 15:26:40 -05:00
David Leal
99e408544e Update backtracking/magic_sequence.cpp 2021-07-13 15:22:40 -05:00
David Leal
d3bcf56a2c Update backtracking/magic_sequence.cpp 2021-07-13 15:20:40 -05:00
David Leal
d88ca66c0a Update backtracking/magic_sequence.cpp 2021-07-13 15:18:32 -05:00
David Leal
28563c2c86 Update backtracking/magic_sequence.cpp 2021-07-13 15:16:14 -05:00
David Leal
f8d4a8f614 Update backtracking/magic_sequence.cpp 2021-07-13 15:15:54 -05:00
David Leal
fb5b8ffe1e Update backtracking/magic_sequence.cpp 2021-07-13 15:15:14 -05:00
David Leal
9fb91e710c Update backtracking/magic_sequence.cpp 2021-07-13 15:15:00 -05:00
David Leal
93daa8129e Update backtracking/magic_sequence.cpp 2021-07-13 15:11:16 -05:00
Jxtopher
cfa635494b Update magic_sequence.cpp 2021-07-13 18:54:04 +02:00
Jxtopher
0ac4048f69 Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-13 18:51:30 +02:00
Jxtopher
dbc783b24a Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-13 13:29:37 +02:00
Jxtopher
13f618dabb Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-13 13:29:14 +02:00
Jxtopher
2b907f52ff Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-13 13:27:46 +02:00
Jxtopher
63fcb877d6 Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-13 13:26:58 +02:00
github-actions
905a69418c clang-format and clang-tidy fixes for 2263f033 2021-07-13 11:26:12 +00:00
Jxtopher
2263f033fe Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-13 13:25:32 +02:00
Jxtopher
7966ef22d1 Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-13 13:25:25 +02:00
Jxtopher
7bbfbed8f8 Revert "Delete settings.json"
This reverts commit 64b08dee6d.
2021-07-12 20:18:42 +02:00
Jxtopher
bcdd7bb037 Update magic_sequence.cpp 2021-07-12 18:54:48 +02:00
Jxtopher
cdaaaf8b61 Update backtracking/magic_sequence.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-12 18:35:31 +02:00
Jxtopher
64b08dee6d Delete settings.json 2021-07-12 15:11:21 +02:00
Jxtopher
1a88559a5d Merge branch 'master' of https://github.com/Jxtopher/C-Plus-Plus 2021-07-11 23:21:52 +02:00
Jxtopher
2d72c0f5e3 Update magic_sequence.cpp 2021-07-11 23:21:43 +02:00
github-actions
17decb7234 updating DIRECTORY.md 2021-07-11 20:52:53 +00:00
Jxtopher
60ccf91510 update code formatter 2021-07-11 22:52:18 +02:00
Jxtopher
bc7437044e Merge pull request #1 from Jxtopher/magic-sequence-in-backtraking
Create magic_sequence.cpp
2021-07-11 06:44:16 +02:00
Jxtopher
e4e404dd15 Create magic_sequence.cpp 2021-07-11 06:43:45 +02:00
Abhinn Mishra
394811e601 fix: spelling error in CONTRIBUTING.md (#1531)
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-09 14:03:57 -05:00
Swastika Gupta
6115bc2981 feat: Add House Robber algorithm (#1524)
* Create house_robber.cpp

* updating DIRECTORY.md

* Update dynamic_programming/house_robber.cpp

Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>

* Update dynamic_programming/house_robber.cpp

Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>

* Update dynamic_programming/house_robber.cpp

Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>

* clang-format and clang-tidy fixes for c00823e8

* Update house_robber.cpp

* clang-format and clang-tidy fixes for cdf701c2

* Update house_robber.cpp

* clang-format and clang-tidy fixes for 39c3719f

* Update dynamic_programming/house_robber.cpp

Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>

* clang-format and clang-tidy fixes for 126e3f21

* Update house_robber.cpp

* Update dynamic_programming/house_robber.cpp

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

* Update dynamic_programming/house_robber.cpp

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

* Update dynamic_programming/house_robber.cpp

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

* Update dynamic_programming/house_robber.cpp

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

* Update house_robber.cpp

* clang-format and clang-tidy fixes for 474a5f0b

* Update dynamic_programming/house_robber.cpp

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

* Update dynamic_programming/house_robber.cpp

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

* clang-format and clang-tidy fixes for 203cce31

* Update house_robber.cpp

* Update house_robber.cpp

* Update house_robber.cpp

* clang-format and clang-tidy fixes for 6b0bea93

* Apply suggestions from code review

* Apply suggestions from code review

* clang-format and clang-tidy fixes for 913baf88

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-09 14:02:28 -05:00
Jxtopher
1ab5e4e564 feat: Replace "\n" -> std::endl (#1530)
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-09 14:00:34 -05:00
Swastika Gupta
34556ad939 Create count_of_set_bits.cpp (#1515)
* Create count_of_set_bits.cpp

* Update count_of_set_bits.cpp

* updating DIRECTORY.md

* clang-format and clang-tidy fixes for d0dc7eb3

* Update bit_manipulation/count_of_set_bits.cpp

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

* Update bit_manipulation/count_of_set_bits.cpp

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

* Update bit_manipulation/count_of_set_bits.cpp

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

* Update bit_manipulation/count_of_set_bits.cpp

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

* Update bit_manipulation/count_of_set_bits.cpp

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

* clang-format and clang-tidy fixes for f8606e8f

* Update bit_manipulation/count_of_set_bits.cpp

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

* Update bit_manipulation/count_of_set_bits.cpp

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

* Update bit_manipulation/count_of_set_bits.cpp

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

* clang-format and clang-tidy fixes for 40e0f745

* Update count_of_set_bits.cpp

* Update bit_manipulation/count_of_set_bits.cpp

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

* Update bit_manipulation/count_of_set_bits.cpp

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

* Update bit_manipulation/count_of_set_bits.cpp

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

* Update bit_manipulation/count_of_set_bits.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>
2021-07-09 15:13:57 +05:30
Nitin Sharma
97afa0e3e4 feat: add Sublist Search Algorithm (#1513)
* feat: add sublist search algorithm

* updating DIRECTORY.md

* clang-format and clang-tidy fixes for e59bc3bf

* Update search/sublist_search.cpp header docs

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

* Update search/sublist_search.cpp docs

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

* Update docs search/sublist_search.cpp

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

* Update docs search/sublist_search.cpp

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

* Update minor docs in  search/sublist_search.cpp

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

* made test function non static

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

* test docs updated

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

* namespaces added for search algo, docs added for test cases

* [feat/fix/docs]: Perform some necessary changes

* clang-format and clang-tidy fixes for 5a02b336

* test cases docs added, merge fixed

* clang-format and clang-tidy fixes for be0160b4

* one liner docs added

* clang-format and clang-tidy fixes for 95b362f3

* some final docs fixes

* clang-format and clang-tidy fixes for 798972e9

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

* docs updated for one line docs

* clang-format and clang-tidy fixes for aebae1df

* added one liner docs

* clang-format and clang-tidy fixes for f6913b75

* Update search/sublist_search.cpp

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

* Update search/sublist_search.cpp

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

* clang-format and clang-tidy fixes for 66d1b87f

* Update search/sublist_search.cpp

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

* Update search/sublist_search.cpp

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

* Apply suggestions from code review

* clang-format and clang-tidy fixes for dc5b0c6c

* Apply suggestions from code review

* clang-format and clang-tidy fixes for 6436932f

* Apply suggestions from code review

* clang-format and clang-tidy fixes for 35f39b57

* Update docs search/sublist_search.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>
2021-07-07 14:53:29 +05:30
Nitin Sharma
60ee52fd6a feat: add random pivot quick sort algorithm (#1510)
* feat: add random pivot quick sort algorithm, test cases included

* updating DIRECTORY.md

* docs: add proper docs for random pivot quick sort algorithm, code reformatted.

* fix: copy constructor bug fixed for TestCase class for random pivot quick sort algo

* docs and code reformatted according to standards

* c-style array declarations removed

* added minor suggestion in docs

* resource link added in docs

* docs formatted

* test function's docs added, using stl function for swap

* generator function migrated to namespace

* Update sorting/random_pivot_quick_sort.cpp

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

* Update sorting/random_pivot_quick_sort.cpp

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

* Update sorting/random_pivot_quick_sort.cpp

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

* docs fixed sorting/random pivot quick sort

* Apply suggestions from code review

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-06 22:49:27 +05:30