* Quality of life
FIX: initlized sum to 1 instead of adding it before return
CHORE: cleaned documentation aswell as adding new documentation, namespace math added
* Update math/check_amicable_pair.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
* Update math/check_amicable_pair.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update math/check_amicable_pair.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update math/check_amicable_pair.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* clang-format and clang-tidy fixes for bc87fea5
* clang-format and clang-tidy fixes for 0a19d1ad
---------
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
* Next higher number with same set bits implimented
* Added to DIRECTORY.md
* Update bit_manipulation/next_higher_number_with_same_number_of_set_bits.cpp
new line aded
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/next_higher_number_with_same_number_of_set_bits.cpp
* added
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/next_higher_number_with_same_number_of_set_bits.cpp
recomendation added
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update next_higher_number_with_same_number_of_set_bits.cpp
int to int64_t
* Update bit_manipulation/next_higher_number_with_same_number_of_set_bits.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
---------
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.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>
* Added bit manipulation algorithms.
* Removed Power of 2 and xor swap.
* Update bit_manipulation/hamming_distance.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/hamming_distance.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/hamming_distance.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* clang-format and clang-tidy fixes for ae4d4707
* Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
* test: docs: Added tests and docs for hamming distance.
* Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
* clang-format and clang-tidy fixes for 94fb407b
* Update bit_manipulation/hamming_distance.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* feat: Added string method for hamming distance.
* Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
* clang-format and clang-tidy fixes for 455dce1d
* fix: Make hamming distance algorithm work for all strings.
* clang-format and clang-tidy fixes for ba18ec04
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>