Commit Graph

1286 Commits

Author SHA1 Message Date
Pardeep Bhatt
db70ae2fba checking for github actions 2020-09-26 01:22:50 +05:30
Pardeep Bhatt
29bd27c076 added documentation for template parameter 2020-09-26 01:08:11 +05:30
Pardeep Bhatt
9681e86569
Update dynamic_programming/cut_rod.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-09-26 01:02:42 +05:30
Pardeep Bhatt
02cdd500c1
Update dynamic_programming/cut_rod.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-09-26 00:58:15 +05:30
Pardeep Bhatt
631691d0c8 added right funtion name in comments 2020-09-26 00:44:20 +05:30
Pardeep Bhatt
058b2ab438
Update dynamic_programming/cut_rod.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-09-26 00:33:24 +05:30
Pardeep Bhatt
14a4f46ce7
Update dynamic_programming/cut_rod.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-09-26 00:30:28 +05:30
Pardeep Bhatt
37a836aa87
Update dynamic_programming/cut_rod.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-09-26 00:29:55 +05:30
Pardeep Bhatt
b803a379dd
Update dynamic_programming/kadane2.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-09-26 00:20:55 +05:30
Pardeep Bhatt
5f324ce4c8
Update dynamic_programming/kadane2.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-09-26 00:20:26 +05:30
Pardeep Bhatt
19e592dc7f added kadane2 algorithm 2020-09-26 00:12:32 +05:30
Pardeep Bhatt
8b6bd5a503 Merge branch 'pardeep/bugFix' of https://github.com/Pardeep009/C-Plus-Plus into pardeep/bugFix 2020-09-25 17:45:22 +05:30
Pardeep Bhatt
8c866d7eab added namespaces 2020-09-25 17:42:47 +05:30
Pardeep Bhatt
2bfb9145e8
Delete largestbst_in_binary_tree.cpp 2020-09-25 17:02:09 +05:30
Pardeep Bhatt
f9593fc86e
Update DIRECTORY.md 2020-09-25 17:01:45 +05:30
Pardeep Bhatt
ccb35a77c4 Merge branch 'pardeep/bugFix' of https://github.com/Pardeep009/C-Plus-Plus into pardeep/bugFix 2020-09-25 16:56:13 +05:30
Pardeep Bhatt
256fc499a4 added testing 2020-09-25 16:50:30 +05:30
Pardeep Bhatt
777bc0374d added requested changes in the code 2020-09-25 16:14:02 +05:30
Pardeep Bhatt
9ce09fa373
Update cut_rod.cpp 2020-09-24 14:13:34 +05:30
Pardeep Bhatt
c104eade81 removed compilation errors 2020-09-24 14:10:31 +05:30
Pardeep Bhatt
110ae88aaf
Delete largestbst_in_binary_tree.cpp 2020-09-24 12:49:55 +05:30
Pardeep Bhatt
0775057afb
Merge branch 'master' into pardeep/bugFix 2020-09-24 12:31:01 +05:30
Pardeep Bhatt
698396b019 fixed clang-tidy warnings 2020-09-24 12:22:40 +05:30
github-actions
0196573949 updating DIRECTORY.md 2020-09-23 18:42:14 +00:00
Ayush Singh
7f7b2b0e68
added kadane algorithm function (#1079)
* added kadane algorithm function

* added changes

* third commit

* fixed some problems

* fixed warnings

* added documentation

* Update kadane_algorithm/kadane.cpp

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

* Update kadane_algorithm/kadane.cpp

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

* Update kadane_algorithm/kadane.cpp

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

* added details in the documentation

* Update kadane_algorithm/kadane.cpp

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

* Update kadane_algorithm/kadane.cpp

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

* added kadane2.cpp

* Update dynamic_programming/kadane2.cpp

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

* added some things

* fixed

* Update dynamic_programming/kadane2.cpp

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

* changes

* Update dynamic_programming/kadane2.cpp

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

* Update dynamic_programming/kadane2.cpp

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

* Update dynamic_programming/kadane2.cpp

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

* Update dynamic_programming/kadane2.cpp

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

* Update dynamic_programming/kadane2.cpp

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

* Update dynamic_programming/kadane2.cpp

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

* added code

* added changes suggested

* Update .vscode/settings.json

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

* Update dynamic_programming/kadane2.cpp

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

* Update dynamic_programming/kadane2.cpp

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

* Update dynamic_programming/kadane2.cpp

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

Co-authored-by: David Leal <halfpacho@gmail.com>
2020-09-23 14:41:28 -04:00
Pardeep Bhatt
4d211fc51b fixed compilation error in cut_rod.cpp code 2020-09-23 16:50:03 +05:30
github-actions
46ac5a46a4 updating DIRECTORY.md 2020-09-21 04:00:41 +00:00
Anish Mookherjee
6319f2e880
Update DIRECTORY.md 2020-09-21 09:29:38 +05:30
github-actions
44737bd2a2 updating DIRECTORY.md 2020-09-21 03:52:00 +00:00
github-actions
9825a3a1ba formatting filenames b15bd1ea 2020-09-21 03:52:00 +00:00
anishmo99
b15bd1eafa Create largestBST_in_binary_tree.cpp 2020-09-21 09:20:54 +05:30
Filip Hlasek
d4b54b8294
feat: Define graph structure in breadth_first_search (#1076)
* feat: Define graph structure in breadth_first_search

* using instead of typedef
2020-09-18 13:34:18 -04:00
Rakshit Raj
88fe6911df
Update merge_sort.cpp (#1077)
On line 133 --- corrected the size argument so that the last element is not missed
2020-09-09 12:51:07 -04:00
github-actions
508ea020d3 updating DIRECTORY.md 2020-09-04 00:14:24 +00:00
ckontakis
60050d7b1b
Added Horspool algorithm (#1071)
* feat: add Horspool algorithm

* Fixed conversion from unsigned long to int with static casting

* Removed changes from CMakeLists.txt file

* Update strings/horspool.cpp

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

* Update strings/horspool.cpp

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

* Documentation, test function and namespaces added

* Documentation, test function and namespaces added

* Update strings/horspool.cpp

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

* Update strings/horspool.cpp

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

* Update strings/horspool.cpp

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

* Update strings/horspool.cpp

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

* Update strings/horspool.cpp

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

* Update strings/horspool.cpp

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

* Removed blank rows

* Commit to see if the problem with automated tests is solved

Co-authored-by: David Leal <halfpacho@gmail.com>
2020-09-03 20:12:56 -04:00
Bolaji Boluwatife
6e77f98494
Revised Linked List (#999)
* Addition of Test to LinkedList

I noticed an infinite loop when the program asks the user to "Enter the element to be inserted:", and the user enters a wrong input such as "rr".

* Revised Tests

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update data_structures/linked_list.cpp

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

* Update data_structures/linked_list.cpp

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

* Update data_structures/linked_list.cpp

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

* Update data_structures/linked_list.cpp

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

* Update data_structures/linked_list.cpp

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

* Update data_structures/linked_list.cpp

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

* Update data_structures/linked_list.cpp

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

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update data_structures/linked_list.cpp

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

* added documentations to functions

I made a few changes although I'm not sure I covered all.

* Update linked_list.cpp

* function documentation

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

* function documentation

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

* function documentation

* Update linked_list.cpp

* removed global variable

I decided to go with the parameter approach.
Is line 79(Iter& ....) and others like it considered healthy code?

* removed global variable

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* fixed clang errors

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* program rewrite

* Update linked_list.cpp

* Update linked_list.cpp

* Removed extra space

* Update linked_list.cpp

* Delete vdoubly_linked_list.ico

* added documentation

* added documentation

* added documentation

* use of shared_ptr

* use of shared_ptr

* modified linked list

* Update linked_list.cpp

* added string header

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* fixed documentation

* fixed link class

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* Update linked_list.cpp

* fixed link class

* fixed runtime error

Co-authored-by: David Leal <halfpacho@gmail.com>
2020-09-03 19:01:50 -05:00
Krishna Vedala
08c4a3f664
feat: Added merge-insertion sort from #246 (#1062)
* Create Merge-insertion sort.cpp

* fixed file path

* working code

* added documentation

* replace c-style array with std::array

* updating DIRECTORY.md

* clang-format and clang-tidy fixes for 8b3a6634

Co-authored-by: sinkyoungdeok <tlsrudejr123@nate.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-09-03 08:51:30 -04:00
github-actions
a9da541127 updating DIRECTORY.md 2020-08-31 18:56:34 +00:00
Nimish Shah
0fcdbf2bdc
fix: Remove repeated algorithm (#1067)
* Improve code and add support for 46+ fibb numbers

* Docs: Fibbonacci docs added

* fix: Add c++ suggested code

* fix: remove repeated algorithm
2020-08-31 13:55:49 -05:00
Filip Hlasek
072fc95228
docs: Update clang-format instructions in CONTRIBUTING. (#1053)
* docs: Update clang-format instructions in CONTRIBUTING.

* Accomodate more changes in the PR section of CONTRIBUTING.

* code formatting

* code sample as a shell script

* format build command

* Add instructions for clang-format installation.

* gitpod

* remove a sentence.
2020-08-30 13:38:49 -04:00
Filip Hlasek
4ed75018e3
fix: Clean up of code examples in CONTRIBUTING to follow guidelines. (#1063) 2020-08-28 12:47:02 -04:00
Krishna Vedala
f4fe0c6f5b
[fix] rename data_structures namespace (#1061)
* rename data_structures namespace

* spelling correction

* fix namespace doc name
2020-08-27 17:13:27 -04:00
Krishna Vedala
b4bbe9dc4e
[code fix] Fixed trie_tree for code quality and docs & clang-tidy error check (#1059)
* attempt to fix trie-tree code

* clang-tidy fixes

* remove performance-unnecessary-value-param as error - this has auto-fix

* make test() static

* added original author to the description

* added namespace

* doc updates

* fix true spelling

* extended to small & big caps alphabets - 52 characters

* clang-format and clang-tidy fixes for edc2247a

* move const parameter to after the parameters

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-08-27 12:30:14 -04:00
Raman Preet Singh
f255e3f1fa
docs: Fix spelling typo (#1058) 2020-08-27 09:33:10 -05:00
Filip Hlasek
ea3071d52a
fix: clang-format for hamiltons_cycle. (#1054) 2020-08-27 09:31:34 -05:00
Filip Hlasek
eee5f9495d
fix: clang-format for dijkstra (#1055) 2020-08-27 09:29:22 -05:00
Filip Hlasek
79fb528dad
fix: clang-format for graph/ (#1056)
* fix: clang-format for graph/

* remove graph.h
2020-08-27 09:28:31 -05:00
Filip Hlasek
3239fcc19e
fix: linter and spacing for is_graph_bipartite. (#1037)
* fix: linter and spacing for is_graph_bipartite.

* updating DIRECTORY.md

* clang-tidy fixes for a49ec9b8d7

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

* Address reviewer's comments.

* Fix docs wording.

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-08-27 09:26:49 -05:00
David Leal
f0c218c789
[fix/docs]: Improve backtracking/nqueen_print_all_solutions.cpp (#1049)
* updating DIRECTORY.md

* updating DIRECTORY.md

* [fix/docs]: Improve backtracking/nqueen_print_all_solutions.cpp

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-08-26 12:57:21 -05:00
Deep Raval
44f4f4d6c3
fix: error handling in opening of external files (neural_network.cpp). (#1044)
* Error Handdling of Files

* exit -> std::exit

* Improved Overall Error handling and reporting

* test commit 

added spaces in include to try to trigger GitHub Actions

* updating DIRECTORY.md

* clang-format and clang-tidy fixes for 51e943d0

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-08-26 12:56:31 -05:00