* updated the code to make it more efficient
* Update math/check_prime.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update math/check_prime.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
* feat: added a1z26 cipher
* updating DIRECTORY.md
* clang-format and clang-tidy fixes for 6e5b6be0
* Update ciphers/a1z26_cipher.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* clang-format and clang-tidy fixes for 36edde81
* fix: brace style
Co-authored-by: David Leal <halfpacho@gmail.com>
* [feat/fix]: uses uint8_t for maps instead of int
* clang-format and clang-tidy fixes for ef211d41
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
* Create reverse_binary_tree.cpp
* Added documentation
Added Documentation for the level_order_traversal() function, and implemented a print() function to display the tree to STDOUT
* Added documentation
* Renamed tests to test
* Fixed issue with incorrect using statement
* updating DIRECTORY.md
* clang-format and clang-tidy fixes for fb86292d
* Added Test cases
* Update operations_on_datastructures/reverse_binary_tree.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update operations_on_datastructures/reverse_binary_tree.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update operations_on_datastructures/reverse_binary_tree.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update operations_on_datastructures/reverse_binary_tree.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update operations_on_datastructures/reverse_binary_tree.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Changed int to int64_t
* Updated documentation wording
* Added namespace and print function
Added the operations_on_datastructures namespace and created a function to print a vector.
* Added implementation of union for two arrays
* Fixed bug with initialization of indexes and added test case
* Added test cases
* Modified references to const &
* Renamed file to meet filename guidelines better
* updating DIRECTORY.md
* Update operations_on_datastructures/union_of_two_arrays.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update operations_on_datastructures/union_of_two_arrays.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update operations_on_datastructures/union_of_two_arrays.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Made changes to documentation
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
* Create reverse_binary_tree.cpp
* Added documentation
Added Documentation for the level_order_traversal() function, and implemented a print() function to display the tree to STDOUT
* Added documentation
* Renamed tests to test
* Fixed issue with incorrect using statement
* updating DIRECTORY.md
* clang-format and clang-tidy fixes for fb86292d
* Added Test cases
* Update operations_on_datastructures/reverse_binary_tree.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update operations_on_datastructures/reverse_binary_tree.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update operations_on_datastructures/reverse_binary_tree.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update operations_on_datastructures/reverse_binary_tree.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update operations_on_datastructures/reverse_binary_tree.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Changed int to int64_t
* Updated documentation wording
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
* feat: add atbash_cipher
* [test/fix]: test case expected result
* docs: added comments for main and test function
* doc: changed brief for test function
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* doc: fixed test comment
Co-authored-by: David Leal <halfpacho@gmail.com>
* [feat/fix]: made test function static
Co-authored-by: David Leal <halfpacho@gmail.com>
* doc: added author comment
Co-authored-by: David Leal <halfpacho@gmail.com>
* fix: brace style
Co-authored-by: David Leal <halfpacho@gmail.com>
* doc: modified file description and added comments for test function
* doc: added comment for #include <iostream>
Co-authored-by: David Leal <halfpacho@gmail.com>
* doc: added description of the algorithm
* Update ciphers/atbash_cipher.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update ciphers/atbash_cipher.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update ciphers/atbash_cipher.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update ciphers/atbash_cipher.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* fix: Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* Fixed array max length and coding style
Max length of arrays was previously an absurdly high integer, instead implemented a numerical upper bound using log2 (max depth of seg tree being logn). Removed `using namespace std;` and `typedef long long ll;` and other competitive coding practices. Added input prompts.
* Fixed remaining clang-tidy warnings
* Replaced reference parameters with const & or *
* Self-tests and documentation
* Improved documentation
* Added author names
Co-authored-by: David Leal <halfpacho@gmail.com>
* Modified: Replaced existing code with faster implementation
* Changed long long to "int64_t"
* Indentation Fixed.
* Modified Documentation.
* Updated authors of count_set_bits.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
* Added proper indentation in "main" function
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
* feat: Add monte carlo integration
* test: Add tests for monte carlo integration
* docs: Add documentation for monte carlo integration
* updating DIRECTORY.md
* fix: Add _USE_MATH_DEFINES for windows
* fix: Comment spacing
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
* FCFS scheduling algorithm in operating system
Added C++ implementation of FCFS scheduling algorithm in a new directory Operating-System/Scheduing-Algorithms
* Renamed files and directories to match guidelines
* Updated comments
* Added comments for member variables of FCFS class
* Deleted .vscode directory
* Replaced array of tuples with vector of tuples
Replaced formatted printf with cout and iomanip flags
Removed unused code blocks
* Replaced array of tuples with vector of tuples
* Removed nested directory
* updating DIRECTORY.md
* clang-format and clang-tidy fixes for c95495b4
* clang-format and clang-tidy fixes for 732f247d
* Updated the documentation and used unsigned int for non-negative integers
* clang-format and clang-tidy fixes for 295f0cc6
* clang-format and clang-tidy fixes for 31f05910
* Added test cases using random number generator
* Replaced time(0) with time(nullptr)
* clang-format and clang-tidy fixes for 40d663d3
* Fixed documentation
* Rearranged code
* clang-format and clang-tidy fixes for b40a2801
* clang-format and clang-tidy fixes for 243dcc15
* Updated documentation
* clang-format and clang-tidy fixes for 899ff7ea
* Fixed some typos
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Replaced int with uint32_t in lines 259 and 263
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
* feat: kadane's algorithm added
* file renamed to kadanes3.cpp and clang-tidy warnings fixed
* updating DIRECTORY.md
* DIRECTORY.md and kadanes3.cpp modified
* change integer types to int64_t and uint64_t, as per the requirements.
* clang-format and clang-tidy fixes for 5025b93a
* Apply suggestions from code review
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
* Modified search/text_search.cpp
* Added tests
* Added a few test cases
* Added a few more test cases and documentation
* Minor fix
* Minor fixes
* Minor fixes
* Minor output fixes
* Minor output fixes
* Minor readability fixes
* clang-format and clang-tidy fixes for a01765a6
* Restored original settings
* clang-format and clang-tidy fixes for 6a8f3a4e
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
* feat: add geometric distribution
* test: Add test for geometric dist
* fix: Make range_tries inclusive
* docs: Add documentation for geometric distribution
* fix: clang warnings in geometric_dist
* updating DIRECTORY.md
* fix: Remove extra line
Co-authored-by: David Leal <halfpacho@gmail.com>
* fix: Remove file name
Co-authored-by: David Leal <halfpacho@gmail.com>
* fix: Add return value of void function
Co-authored-by: David Leal <halfpacho@gmail.com>
* fix: Add comment for test function
Co-authored-by: David Leal <halfpacho@gmail.com>
* fix: Update successful test message
Co-authored-by: David Leal <halfpacho@gmail.com>
* fix: Add geometric_dist namespace
Co-authored-by: David Leal <halfpacho@gmail.com>
* fix: Remove extra line
Co-authored-by: David Leal <halfpacho@gmail.com>
* fix: Close comment
* docs: Fix documentation
Co-authored-by: David Leal <halfpacho@gmail.com>
* fix: Add const to parameter
Co-authored-by: David Leal <halfpacho@gmail.com>
* fix: Make class methods const
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
* added a new directory named Recursion and a most common exxample of recusion i.e. Tower of Hanoi in it
* Added Comments
* Bug fixed according to the correct definition of armstrong_number
* Bug Fixed in armstrong_number.cpp
Bug Fixed in armstrong_number.cpp according to the correct definition of armstrong_number.
* Update armstrong_number.cpp
* Added documentation
* Delete Recursion directory
* Update armstrong_number.cpp
* Update dynamic_programming/armstrong_number.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update armstrong_number.cpp
fixed errors.
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Update armstrong_number.cpp
Applied suggested changes.
* Update armstrong_number.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
Set stale bot action limit to default because it's actually GitHub API action limit and not the number of issues/PRs it marks per run as I thought
Co-authored-by: David Leal <halfpacho@gmail.com>
* feat: added z_algorithm in strings
* Updated z_function.cpp
Updated z_function.cpp as per contribution guidelines.
Fixed Link using github markdown syntax
Created a separate function for tests and covered the corner case
* Apply suggestions from code review
More comments added to the code
Co-authored-by: David Leal <halfpacho@gmail.com>
* Apply suggestions from code review
Some more documentation added as per contribution guidelines.
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update strings/z_function.cpp
comments added
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update strings/z_function.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* clang-format and clang-tidy fixes for 0c7515e9
* Updated int -> uint64_t
Updated int -> uint64_t for non-negative values
* clang-format and clang-tidy fixes for 12d51239
* Update strings/z_function.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update strings/z_function.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* More comments added
* clang-format and clang-tidy fixes for 8a627ac9
* Update strings/z_function.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update strings/z_function.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* Finding no. of digits in a Number
* Initialize n
* Initialize n as int
* Changes done
* Changes done with codes by adding more comments
* Changes done with codes by adding name as md
* Modified comments
* add void
* remove void & update comments
* Set some changes to pass Awesome CI Workflow
* add return 0 & file name in lower case
* Changes done..
* Update finding_number_of_Digits_in_a_Number.cpp
* Update finding_number_of_Digits_in_a_Number.cpp
* Update finding_number_of_Digits_in_a_Number.cpp
* formatting filenames 0ec45e33
* updating DIRECTORY.md
* clang-format and clang-tidy fixes for 0ec45e33
* clang-format and clang-tidy fixes for 9c0a437e
* updating DIRECTORY.md
* Wrote test, needs review
* [fix/docs]: Fix tests/code and add documentation
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* feat: Convert all issue templates into issue...
...forms. Also disables blank issues and adds an `Other` template for generic issues but no blank issues.
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>