Commit Graph

75 Commits

Author SHA1 Message Date
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
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
shoniavika
426ecd03f1
Added queue implementation using two stacks (#953)
* added queue implementation using 2 stacks

* added empty queue error handling

* added empty queue error handling

* updated format

* deleted macro

* added documentation

* updated documentation, new func for testing

* added copyright

* documented queue class

* made queue a generic one

* handles lvalue error & added consts

* added namespace
2020-07-18 17:01:03 -04:00
Ayaan Khan
ef13806cd6
Merge pull request #941 from enqidu/skip_list
Skip list
2020-07-13 19:02:48 +05:30
Krishna Vedala
eefe46688d
main function must return 2020-07-13 08:07:44 -04:00
Krishna Vedala
dc4a72c418
fix doc comment block 2020-07-13 08:07:10 -04:00
Krishna Vedala
47f5ad9aaf
fix randomlevel float conversion 2020-07-12 17:47:57 -04:00
Krishna Vedala
c15c962f02
since we are using smart pointers, an explicit destructor is not required 2020-07-12 17:04:09 -04:00
Krishna Vedala
f970ce361c
tidied up code based on error reports by clang-tidy 2020-07-12 17:00:27 -04:00
enqidu
ddf148b613 Merge branch 'skip_list' of https://github.com/enqidu/C-Plus-Plus into skip_list 2020-07-12 19:25:14 +04:00
enqidu
a707d710b5 update 2020-07-12 19:24:46 +04:00
enqidu
af49a02ed8
Update data_structures/skip_list.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-07-10 21:27:51 +04:00
enqidu
5d225aba87
Update data_structures/skip_list.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-07-10 21:27:35 +04:00
enqidu
b1b3b310a4
Update data_structures/skip_list.cpp
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-07-10 21:27:22 +04:00
enqidu
2fecf67a36 parameters 2020-07-10 21:11:20 +04:00
enqidu
a90dcc5f66 parameters 2020-07-10 21:10:21 +04:00
enqidu
d59005678d documentation 2020-07-10 20:40:00 +04:00
enqidu
ab1ddb364f documentation 2020-07-10 20:39:33 +04:00
enqidu
bba0db36ec sk 2020-07-08 20:47:43 +04:00
enqidu
4ce394e38d Merge branch 'skip_list' of https://github.com/enqidu/C-Plus-Plus into skip_list 2020-07-08 20:46:53 +04:00
enqidu
a5ca794aa4 sk 2020-07-08 20:46:50 +04:00
enqidu
59a8b3d4a2
Update data_structures/skip_list.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-07-08 20:43:52 +04:00
Krishna Vedala
0e9585d080
remove Copyright from docs 2020-07-08 12:30:13 -04:00
enqidu
45b21f2871 improve 2020-07-07 20:29:37 +04:00
enqidu
662841bac7 improve 2020-07-07 19:59:54 +04:00
enqidu
1df1e1eabc improve 2020-07-07 19:58:10 +04:00
enqidu
ea57ad29cd improve 2020-07-07 19:55:47 +04:00
enqidu
d5b897d40e improve 2020-07-07 19:22:32 +04:00
enqidu
ac0d11977d skip_list 2020-07-07 19:17:37 +04:00
enqidu
4cebe7c682 skip_list 2020-07-07 18:21:12 +04:00
enqidu
fd8affb59d skip_list 2020-07-07 18:20:21 +04:00
enqidu
f7ab869d90 skip list update 2020-07-07 18:16:38 +04:00
enqidu
dcdebae395 skip-list documentation-polish 2020-07-07 17:24:13 +04:00
enqidu
5068ddc14d skip-list documentation-polish 2020-07-07 16:55:52 +04:00
enqidu
ba65d559c5 skip-list documentation-polish 2020-07-07 16:51:47 +04:00
enqidu
2fc0d5bffe skip-list corrected 2020-07-07 16:40:47 +04:00
enqidu
8e99383dbf skip_list 2020-07-07 15:13:01 +04:00
enqidu
910180ff21 skip_list 2020-07-07 14:54:44 +04:00
enqidu
420915fa0d skip_list 2020-07-07 14:48:30 +04:00
enqidu
2fb95a2bf3 skip_list 2020-07-07 14:29:08 +04:00
enqidu
f13964cab2 skip-list 2020-07-07 14:04:44 +04:00
enqidu
2c6b8c3bf7 skip_list 2020-07-07 13:46:52 +04:00
enqidu
94338f527b skip_list 2020-07-07 13:43:27 +04:00
enqidu
ec04afc54f added skip-list 2020-07-07 13:34:13 +04:00
enqidu
d11e8cb40a added skip_list.cpp 2020-07-07 13:30:42 +04:00
Krishna Vedala
46854f516e
Merge pull request #890 from Panquesito7/lgtm_fixes
fix: Various LGTM fixes
2020-06-24 16:41:09 -04:00
Panquesito7
c7ff9d66f1
feat: Add exit option 2020-06-24 12:12:30 -05:00
Krishna Vedala
9b01676b33
fixed function argument 2020-06-24 10:48:18 -04:00