* printing out the solved grid with the differences highlighted.
* added documentation to the functions.
* removed #define because code formatter check failed.
* Create count_inversions.cpp
Counts the number of inversions in a list using merge sort. The number of Inversions in a list is the measure of the list's proximity to being sorted in ascending/increasing order.
* Update count_inversions.cpp
- fixed template error on line 156
- an added test case for character array
- an added test case for list type double
* Update sorting/count_inversions.cpp
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
* Update sorting/count_inversions.cpp
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* clang-format and clang-tidy fixes for b51af5e8
* using `uint64_t` from cstdint header
and doxygen formatiing
* clang-format and clang-tidy fixes for 047578bb
* Update count_inversions.cpp
* added comments on imports
* clang-format and clang-tidy fixes for 2f65017d
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update count_inversions.cpp
* clang-format and clang-tidy fixes for 5d5cc53e
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update count_inversions.cpp
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update count_inversions.cpp
* clang-format and clang-tidy fixes for 121ce330
* Update sorting/count_inversions.cpp
Co-authored-by: John Law <johnlaw.po@gmail.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: John Law <johnlaw.po@gmail.com>
* feat: add saddleback search algorithm
* docs: add comments and explaination for saddleback algorithm
* test: add test for saddleback algorithm
* refactor: use size_t instead of int
* refactor: made suggested changes
* updating DIRECTORY.md
* refactor: made suggested changes
* refactor: made suggested changes
* refactor: made suggested changes
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* 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>
* 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>
* 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>
* cross product of two vectors
* cross product of two mathematical vectors (fixed)
* cross product of two mathematical vectors (fixed)
* updating DIRECTORY.md
* cross product of two mathematical vectors (fixed)
* cross product of two mathematical vectors (fixed)
* cross product of two mathematical vectors (fixed)
* cross product of two vectors (with tests)
* cross product of two mathematical vectors (fixed)
* cross product of two vectors (with example fixed)
* cross product of two vectors
* cross product of two mathematical vectors
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* printing out the solved grid with the differences highlighted.
* added documentation to the functions.
* removed #define because code formatter check failed.
* Create count_inversions.cpp
Counts the number of inversions in a list using merge sort. The number of Inversions in a list is the measure of the list's proximity to being sorted in ascending/increasing order.
* Update count_inversions.cpp
- fixed template error on line 156
- an added test case for character array
- an added test case for list type double
* Update sorting/count_inversions.cpp
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
* Update sorting/count_inversions.cpp
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* clang-format and clang-tidy fixes for b51af5e8
* using `uint64_t` from cstdint header
and doxygen formatiing
* clang-format and clang-tidy fixes for 047578bb
* Update count_inversions.cpp
* added comments on imports
* clang-format and clang-tidy fixes for 2f65017d
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update count_inversions.cpp
* clang-format and clang-tidy fixes for 5d5cc53e
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update count_inversions.cpp
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update count_inversions.cpp
* clang-format and clang-tidy fixes for 121ce330
* Update sorting/count_inversions.cpp
Co-authored-by: John Law <johnlaw.po@gmail.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: John Law <johnlaw.po@gmail.com>
* feat: add saddleback search algorithm
* docs: add comments and explaination for saddleback algorithm
* test: add test for saddleback algorithm
* refactor: use size_t instead of int
* refactor: made suggested changes
* updating DIRECTORY.md
* refactor: made suggested changes
* refactor: made suggested changes
* refactor: made suggested changes
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* 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>