Commit Graph

124 Commits

Author SHA1 Message Date
Tishasoumya-02
83ee6e447f added more efficient test cases 2021-09-25 10:24:28 +05:30
Tishasoumya-02
79ed826ab2 docs:documentation changes 2021-09-23 21:28:29 +05:30
Tishasoumya-02
9217023dd0 fix :fixing merge conflicts 2021-09-20 10:11:50 +05:30
Tishasoumya-02
da8b1ffa30 fix :merge conflict 2021-09-19 21:03:28 +05:30
Tishasoumya-02
78d6f0e2f9 fix: bug fixes 2021-09-19 09:10:56 +05:30
Tishasoumya-02
f5972aa250 fix: try-catch block 2021-09-18 22:15:05 +05:30
Tishasoumya-02
6520e53ec2 fix : added try block 2021-09-18 22:00:22 +05:30
Tisha Soumya
3635d1b725 fix : display changes
Co-authored-by: ERR ! <75872316+amino19@users.noreply.github.com>
2021-09-13 15:31:56 +05:30
github-actions
59d2691d5b clang-format and clang-tidy fixes for db8e74a9 2021-09-12 17:42:21 +00:00
Tisha Soumya
db8e74a904 docs: fix changes
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-09-12 23:11:39 +05:30
github-actions
58a7387ff4 clang-format and clang-tidy fixes for 57953be1 2021-09-12 17:04:34 +00:00
Tisha Soumya
57953be148 docs : documentation changes
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-09-12 22:33:52 +05:30
Tisha Soumya
8740c411e4 docs : documentation fixes
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-09-12 22:33:14 +05:30
github-actions
bc43643715 clang-format and clang-tidy fixes for 3b2e68c2 2021-09-11 04:49:30 +00:00
Tishasoumya-02
3b2e68c22b fix: changed the data types 2021-09-11 10:18:25 +05:30
github-actions
7469415279 clang-format and clang-tidy fixes for 38547be2 2021-09-09 04:24:41 +00:00
Tishasoumya-02
38547be259 fix : display function removed 2021-09-09 09:53:50 +05:30
Tishasoumya-02
e32429bf87 fix : display function removed 2021-09-09 09:49:25 +05:30
github-actions
32b9037068 clang-format and clang-tidy fixes for f7695035 2021-09-08 18:43:06 +00:00
github-actions
b57ed61a5d formatting filenames f7695035 2021-09-08 18:42:59 +00:00
Tishasoumya-02
f7695035f5 fix: clang-tidy warnings 2021-09-09 00:12:10 +05:30
Tishasoumya-02
633cb2c05d fix : ouptut statement changes 2021-09-08 10:15:20 +05:30
Tishasoumya-02
163b6df34f docs :fix indentation 2021-09-08 09:35:24 +05:30
Tishasoumya-02
15322a0d34 docs : changes required in the docs 2021-09-08 08:24:45 +05:30
Tishasoumya-02
971e9593ec fix: chamges in the code 2021-09-07 22:23:10 +05:30
Tishasoumya-02
36273ebb57 fix: suggested changes 2021-09-07 19:31:01 +05:30
Tishasoumya-02
ac273aa4a3 docs :added an external link for explanation of the algorithim 2021-09-07 13:31:15 +05:30
Tishasoumya-02
f44daaa526 fix: synatx changes 2021-09-07 12:51:09 +05:30
Tishasoumya-02
57c474a573 add:test for the reversing algorithim 2021-09-07 12:30:49 +05:30
Tisha Soumya
3c2cf78b79 Updating data_structures/reverse_a_linked_list.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-09-07 00:01:02 +05:30
github-actions
123d6640bb clang-format and clang-tidy fixes for 19b4a937 2021-09-06 18:30:32 +00:00
Tisha Soumya
19b4a93702 Update the description in data_structures/reverse_a_linked_list.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-09-06 23:59:51 +05:30
Tisha Soumya
650a2fdc46 Update data_structures/reverse_a_linked_list.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-09-06 23:58:24 +05:30
Tisha Soumya
55de9f9ddc Update data_structures/reverse_a_linked_list.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-09-06 23:58:01 +05:30
github-actions
7cb21c9123 clang-format and clang-tidy fixes for 5cac47c9 2021-09-06 14:19:26 +00:00
Tishasoumya-02
71b1da4085 add: reverse linked list algorithim 2021-09-06 11:46:31 +05:30
Mann Patel
17405a05ee feat: add spare table data structure (#1502)
* feat: add spare table data structure

Added implementation of sparse table for a 'duplicate invariant function'. Implementation of min(a1,a2...,aN) being the duplicate invariant function is done.

* fixed: clang-tidy warnings

* minor change: remove bits/stdc++ header

* added header comments

* updating DIRECTORY.md

* fixed to clang-format

* fixed header postion

suggested change

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

* fixed author name

suggested changes

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

* fixed test() info to Doxygen standards.

suggested changes

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

* changed comment

suggested changes

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

* minor changes in file info

suggested changes

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

* minor changes in file info

suggested changes

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

* minor changes in file info

suggested changes

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

* changes in variable and struct descriptions

* Update data_structures/sparse_table.cpp

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

* Update data_structures/sparse_table.cpp

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

* Update data_structures/sparse_table.cpp

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

* changed int data type for non-negative numbers

* changing datatypes of certain variables

* Update data_structures/sparse_table.cpp

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

* Update data_structures/sparse_table.cpp

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* clang-format and clang-tidy fixes for ddf777fc

* minor changes

* fixed comparison of integer of diff signedness

* Update data_structures/sparse_table.cpp

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

* added description as @Panquesito7 suggested

* minor grammar checks

* minor documentation fixes

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-06-07 15:24:49 -05:00
GeorgianaK
5ba8bc2c86 read violation resolved (#1496) 2021-05-25 10:52:52 +05:30
Bolaji Boluwatife
a5022c53f2 fix: Corrected erase method in data_structures/linked_list.cpp (#1494) 2021-05-09 22:24:05 -05:00
Venkata Bharath Malapati
7ea1ca6c9c feat: Trie data structure using hashmap, predict_words method, class Trie (#1464)
* feat: add Trie data structure using hashmap, predict_words method, class Trie

* updating DIRECTORY.md

* fix: fixed clang.tidy warnings

* docs: added documentation toclass trie

* docs: updated documentation

* fix: added namespace trie_using_hashmap

* docs: updated documentation with comments

* docs: updated documentation with spelling corrections

* docs: updated requested changes

* docs : updated requested changes in documentation

* fix: 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-03-18 23:58:33 +05:30
David Leal
d970011d3d fix: LGTM warnings in...
...`data_structures/rb_tree.cpp`.
2021-03-07 21:19:21 -06:00
David Leal
f71fbc54d7 fix: Move rb_tree.cpp to its correct director...
...y and fix filename.
2021-03-04 21:33:27 -06:00
Walt
6b4d6c20ff feat: add new implementation of binary search tree (#1208)
* fix: revamp binary_search_tree.cpp to use generics, oop, and modern c++ features

* fix: remove make_unique from code

* fix: fix some clang-tidy errors in binary_search_tree.cpp

* Move new implementation into new file, restore old file.

* Reset binary_search_tree.cpp to original implementation.

* Add link to new implementation.

* fix: add suggested fixes (see PR)

* Implement comment suggestions.

* Update data_structures/binary_search_tree2.cpp

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

* Fix additional comments.

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2021-02-05 15:37:16 +05:30
Sagar Pandya
e813f9b2a6 [docs/test]: Documentation and test in the list_array.cpp (#1375)
* Added introductory documentation in list_array

* documentation for search completed, minor bug fixed in the list_array

* bug fixed in the insert method

* edge case check added in the remove method

* Documentation completed in list_array

* Testing completed in the list_array.cpp

* Bug fixed in the sort method

* test cases improved and minor bug fixed in list_array

* minor allignment changed

* changes in documentation and improvement in the code in list_array

* resolve clang-tidy warning

* link added datatype changed

* namespaces added

* minor documentation changed in list_array.cpp

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2021-02-05 15:35:44 +05:30
fedom
9d3d40b44e feat: add 2-3-4-tree implment (#1366)
* feat: add 2-3-4 tree implment

* updating DIRECTORY.md

* docs: fix format issue of tab&space

* fix: fix code format issues

* fix: convert printf() to std::cout

* fix: fix some clang-tidy warnings

* fix: fix clang-tidy warnings of memory owning

* fix: remove use of  std::make_unique which is not support by c++11

* docs: improve documents

* fix: replace fprint with ofstream, and improve docs

* docs: improve docs for including header file

* docs: improve file doces

* fix: convert item type to int64_t, convert node item count type to int8_t

* refactor: Apply suggestions from code review

Add namespaces

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

* docs: remove obsolete comments

Co-authored-by: liuhuan <liuhuan@ainirobot.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-12-01 11:16:49 +05:30
Kaustubh Damania
67e26cfbae feat: Add ncr mod p code (#1325)
* feat: Add ncr mod p code (#1323)

* Update math/ncr_modulo_p.cpp

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

* Added all functions inside a class + added more asserts

* updating DIRECTORY.md

* clang-format and clang-tidy fixes for f6df24a5

* Replace int64_t to uint64_t + add namespace + detailed documentation

* clang-format and clang-tidy fixes for e09a0579

* Add extra namespace + add const& in function arguments

* clang-format and clang-tidy fixes for 8111f881

* Update ncr_modulo_p.cpp

* clang-format and clang-tidy fixes for 2ad2f721

* Update math/ncr_modulo_p.cpp

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

* Update math/ncr_modulo_p.cpp

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

* Update math/ncr_modulo_p.cpp

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

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

* updating DIRECTORY.md

* clang-format and clang-tidy fixes for a8401d4b

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-11-22 23:05:01 +05:30
Farbod Ahmadian
b4b182a61d [fix/docs]: Memory leakage caused by using new operator & refactoring/documentation (#1428)
* fix: Fixed memory leak bug by using 'std::vector' instead of 'new'

* Small refactoring

* Small refactoring

* Fix Code Formatter test failed

* Code refactored based on PR review

* Added return 0 based on PR review

* docs: Added documentation for linear queue using array implementation

* docs: Updated based on PR review

* docs: Second update based on PR review

* docs: Updated based on PR review

* Change max_size data type

* Use std::array instead of std::vector
2020-11-14 07:31:11 +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
pratamjain
c915f9f3c2 Updated stack_using_array.cpp (#1137)
Added bottom function for getting bottom element from a stack .
2020-10-02 08:22:14 -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