Aman Raj
53a6c16730
added set_kth_bit.cpp ( #1863 )
...
* added set_kth_bit.cpp
* updating DIRECTORY.md
* Update bit_manipulation/set_kth_bit.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/set_kth_bit.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: David <Panquesito7@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-01-16 21:27:24 +05:30
Yash Raj Singh
70d07ff917
feat: add count_bits_flip.cpp
( #1862 )
...
* Added count_bits_flip.cpp
* updating DIRECTORY.md
* Update bit_manipulation/count_bits_flip.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* clang-format and clang-tidy fixes for 7608314d
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: David <Panquesito7@users.noreply.github.com>
Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
2022-01-11 12:51:39 -06:00
Lajat5
b3a0070a74
feat: Reworked/updated sorting/selection_sort.cpp. ( #1613 )
...
* Reworked selection_sort.cpp with fixes.
* Added Recursive implementation for tree traversing
* Fix #2
* Delete recursive_tree_traversals.cpp
* Update selection_sort.cpp
* Changes done in selection_sort_iterative.cpp
* updating DIRECTORY.md
* clang-format and clang-tidy fixes for 4681e4f7
* Update sorting/selection_sort_iterative.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/selection_sort_iterative.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update selection_sort_iterative.cpp
* Update sorting/selection_sort_iterative.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/selection_sort_iterative.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* clang-format and clang-tidy fixes for ca2a7c64
* Finished changes requested by ayaankhan98.
* Reworked on changes.
* clang-format and clang-tidy fixes for f79b79b7
* Corrected errors.
* Fix #2
* Fix #3
* Major Fix #3
* clang-format and clang-tidy fixes for 79341db8
* clang-format and clang-tidy fixes for 9bdf2ce4
* Update selection_sort_iterative.cpp
* clang-format and clang-tidy fixes for 9833d7a7
* clang-format and clang-tidy fixes for b7726460
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
2021-10-25 13:17:33 -05:00
Prashant Thakur
6272b2af08
feat: Modified count_set_bits.cpp ( #1634 )
...
* 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>
2021-10-16 19:57:23 -05:00
Swastika Gupta
bd44418731
feat: Add count_of_trailing_ciphers_in_factorial_n
( #1543 )
...
* zeroes
* Update bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* clang-format and clang-tidy fixes for 537cd7e8
* Update count_of_trailing_ciphers_in_factorial_n.cpp
* Update bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* clang-format and clang-tidy fixes for a8c85e2d
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
2021-07-29 11:41:52 -05:00
Swastika Gupta
34556ad939
Create count_of_set_bits.cpp ( #1515 )
...
* Create count_of_set_bits.cpp
* Update count_of_set_bits.cpp
* updating DIRECTORY.md
* clang-format and clang-tidy fixes for d0dc7eb3
* Update bit_manipulation/count_of_set_bits.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_set_bits.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_set_bits.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_set_bits.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_set_bits.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* clang-format and clang-tidy fixes for f8606e8f
* Update bit_manipulation/count_of_set_bits.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_set_bits.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_set_bits.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* clang-format and clang-tidy fixes for 40e0f745
* Update count_of_set_bits.cpp
* Update bit_manipulation/count_of_set_bits.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_set_bits.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_set_bits.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update bit_manipulation/count_of_set_bits.cpp
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>
2021-07-09 15:13:57 +05:30
Ravishankar Joshi
0ce5df0c21
feat: Hamming distance algorithm. ( #1376 )
...
* 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>
2021-02-17 08:08:29 +05:30