mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-03 18:46:50 +08:00
c6af94350830a38824fb69ca21b8b4bb111a1f49
3 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
c6af943508 |
fix: add cstdint header to all files using fixed width integers (#2717)
* fix: add <cstdint> to subset_sum.cpp * fix: add <cstdint> to subarray_sum.cpp * fix: add <cstdint> to wildcard_matching.cpp * fix: add <cstdint> to count_bit_flips.cpp * fix: add <cstdint> to count_of_set_bits.cpp * fix: add <cstdint> to trailing_ciphers.cpp * fix: add <cstdint> to hamming_distance.cpp * doc: include doc for hamming_distance * fix: add <cstdint> to next_higher_numebr_with_same_number_of_set_bits.cpp * fix: add <cstdint> to power_of_2.cpp * fix: add <cstdint> to set_kth_bit.cpp * fix: add <cstdint> to bit_manipulation/set_kth_bit.cpp * fix: add <cstdint> to bit_manipulation/travelling_salesman_using_bit_manipulation.cpp * fix: add <cstdint> to ciphers/base64_encoding.cpp * fix: add <cstdint> to ciphers/hill_cipher.cpp * fix: add <cstdint> to ciphers/uint128_t.hpp * fix: add <cstdint> to data_structures/dsu_path_compression.cpp * fix: add <cstdint> to data_structures/dsu_path_compression.cpp * fix add <cstdint> to datastructures/list_array>cpp * fix add <cstdint> to datastructures/queue_using_array.cpp * fix: add <cstdint> to sparse_table.cpp * fix: add <cstdint> to stack_using_list_queue.cpp * fix: add <cstdint> to treap.cpp * fix: add <cstdint> to graham_scan_functions.hpp * fix: add <cstdint> to graph/** * fix: add integral typdefs to hashing/** * fix: add <cstdint> to math/** * fix: add <cstdint> to numerical_methods/** * fix: add <cstdint> to other/** * fix: add <cstdint> to search/** * fix: add <cstdint> to sorting/** * fix: add <cstdint> to string/** * doc: remove include statement from comment * fix: make tests static Co-authored-by: David Leal <halfpacho@gmail.com> * fix: make tests static Co-authored-by: David Leal <halfpacho@gmail.com> * chore: use iwyu on backtracking/**.cpp * chore: use iwyu on bit_manip/**.cpp * chore: use iwyu on ciphers/**.cpp * chore: use iwyu on cpu_scheduling_algorithms/**.cpp * chore: use iwyu on data_structures/**.cpp * chore: use iwyu on divide_and_conquer/**.cpp * chore: use iwyu on geometry/**.cpp * chore: use iwyu on graph/**.cpp * chore: use iwyu on hashing/**.cpp * chore: use iwyu on machine_learning/**.cpp * chore: use iwyu on math/**.cpp * chore: use iwyu on numerical_methods/**.cpp * chore: use iwyu on others/**.cpp * chore: use iwyu on probablity/**.cpp * chore: use iwyu on search/**.cpp * chore: use iwyu on sorting/**.cpp * chore: use iwyu on strings/**.cpp * Revert "chore: use iwyu on strings/**.cpp" This reverts commit |
||
|
|
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 |
||
|
|
f821fae698 |
feat : add Class Based DSU for Path Compression O(1) & Union Rank O(logN) (#1571)
* Add files via upload # Class Based DSU -Using Path Compression to get the best time complexity O(1) -Using Union Rank to keep track of changes using parent(p) O(logN) * Class based DSU : Path Compression O(1) and Union Rank O(logN) * made changes to satisfy the meets of the PR changes made to satisfy the needs of the PR - used base lib instead of <bits/stdc++.h> - changed all stdin's and included pre-declared test cases * removed stdin for testing * changed file name from upper case to lower case * made necessary changes * Delete DSU_union_rank.cpp * Delete DSU_path_compresssion.cpp * added explicit to contructors, return 0, n=dec * Delete dsu_path_compresssion.cpp * added documentations, to match the typical structure Added @brief @details @author @param @returns * Update data_structures/dsu_union_rank.cpp Co-authored-by: David Leal <halfpacho@gmail.com> * Update data_structures/dsu_path_compression.cpp Co-authored-by: David Leal <halfpacho@gmail.com> * Update data_structures/dsu_path_compression.cpp Co-authored-by: David Leal <halfpacho@gmail.com> * Update data_structures/dsu_path_compression.cpp Co-authored-by: David Leal <halfpacho@gmail.com> * Update data_structures/dsu_union_rank.cpp Co-authored-by: David Leal <halfpacho@gmail.com> * Update data_structures/dsu_path_compression.cpp Co-authored-by: David Leal <halfpacho@gmail.com> * Update data_structures/dsu_path_compression.cpp Co-authored-by: David Leal <halfpacho@gmail.com> * added self-implementation test cases, changed int to uint64_t * std::cout after assert * Update data_structures/dsu_path_compression.cpp Co-authored-by: David Leal <halfpacho@gmail.com> * Update data_structures/dsu_union_rank.cpp Co-authored-by: David Leal <halfpacho@gmail.com> * Update data_structures/dsu_path_compression.cpp Co-authored-by: David Leal <halfpacho@gmail.com> * Update data_structures/dsu_path_compression.cpp Co-authored-by: David Leal <halfpacho@gmail.com> * Update data_structures/dsu_path_compression.cpp Co-authored-by: David Leal <halfpacho@gmail.com> * Update data_structures/dsu_path_compression.cpp Co-authored-by: David Leal <halfpacho@gmail.com> * updating DIRECTORY.md * clang-format and clang-tidy fixes for |