* 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>
* 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>
* 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
* palindrome no
a program to check if a number is palindrome or not
* updated palindrome.cpp
* updated palindrome.cpp
missing equal to operator at line no 16
* flatten_a_binary_seach_tree
This program flattens a binary search tree or in simple words, converts it into linked list in sorted form
* a prog to convert bst into linked list
A code that is used to convert a binary search tree into linked list
* created merge k sorted arrays
this program displays all the elements from the different arrays(sorted) into 1 single array(sorted).
* updated braces in some parts
* included braces in line no 58
* included braces in line 58 and 60
* created trap_rainwater.cpp
A program to calculate the maximum amount of water that can be stored between buildings.
* deleted rainwater harvesting
* deleted palindrome
* deleted merge k sorted arrays
* deleted binary search tree to linked list
* deleted binary search tree to linked list
* created min_coins_topdown.cpp
This is another version of coins exchange problem solved using top down approach
* updated the code
please take a look at it
* final changes
* updated my code
* updating DIRECTORY.md
* changed int64_t to int8_t and int16_t
* edited line 3
* changed line 3
* edited line 3 & removed line 18
* added extra space
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* Runge Kutta Method
* statically cast and initialised
* changes applied
* changes applied
* minor changes applied
* Proper Documentation updated
* Proper Documentation updated with suggestions
* minor changes
* added returns to rungeKutta function
* made a small commit
* updating DIRECTORY.md
* made a small change at line 99
* made a small change at line 99
* Changes made as suggested
* Changes updated
* espace reverted
* changes made in the documentation
* minor additions
* Update rungekutta.cpp
* Update change
* Changes removed
* Minor updates
* test functions added
* Test functions outside namespace
* non-static to static test function
* used vector
* changed function brief
* made a single test function
* made a single test function and made a slight change
* changed numerical method namespace description
* made changes in test function
* made slight changes as suggested
* Added a space
* Added the new suggestions
* updated in latex
Co-authored-by: Rudra Prasad Das <rudraiitism@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>