Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add cstdint header to all files using fixed width integers #2717

Merged
merged 145 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
9c138a5
fix: add <cstdint> to subset_sum.cpp
realstealthninja Aug 31, 2024
6629fd2
fix: add <cstdint> to subarray_sum.cpp
realstealthninja Aug 31, 2024
392aed2
fix: add <cstdint> to wildcard_matching.cpp
realstealthninja Aug 31, 2024
f71bd16
fix: add <cstdint> to count_bit_flips.cpp
realstealthninja Aug 31, 2024
79104ec
fix: add <cstdint> to count_of_set_bits.cpp
realstealthninja Aug 31, 2024
d550381
fix: add <cstdint> to trailing_ciphers.cpp
realstealthninja Aug 31, 2024
b66991f
fix: add <cstdint> to hamming_distance.cpp
realstealthninja Aug 31, 2024
13f09a6
doc: include doc for hamming_distance
realstealthninja Aug 31, 2024
6b986a9
fix: add <cstdint> to next_higher_numebr_with_same_number_of_set_bits…
realstealthninja Aug 31, 2024
9639d76
fix: add <cstdint> to power_of_2.cpp
realstealthninja Aug 31, 2024
8517a66
fix: add <cstdint> to set_kth_bit.cpp
realstealthninja Aug 31, 2024
49fbaf6
fix: add <cstdint> to bit_manipulation/set_kth_bit.cpp
realstealthninja Aug 31, 2024
4b16caa
fix: add <cstdint> to bit_manipulation/travelling_salesman_using_bit_…
realstealthninja Aug 31, 2024
84c2957
fix: add <cstdint> to ciphers/base64_encoding.cpp
realstealthninja Aug 31, 2024
89dfe60
fix: add <cstdint> to ciphers/hill_cipher.cpp
realstealthninja Aug 31, 2024
1a0b5cf
fix: add <cstdint> to ciphers/uint128_t.hpp
realstealthninja Aug 31, 2024
4792c81
fix: add <cstdint> to data_structures/dsu_path_compression.cpp
realstealthninja Aug 31, 2024
11d2437
fix: add <cstdint> to data_structures/dsu_path_compression.cpp
realstealthninja Aug 31, 2024
ef59b45
fix add <cstdint> to datastructures/list_array>cpp
realstealthninja Aug 31, 2024
b8e5592
fix add <cstdint> to datastructures/queue_using_array.cpp
realstealthninja Aug 31, 2024
0d18442
fix: add <cstdint> to sparse_table.cpp
realstealthninja Aug 31, 2024
82cb276
fix: add <cstdint> to stack_using_list_queue.cpp
realstealthninja Aug 31, 2024
5421cfc
fix: add <cstdint> to treap.cpp
realstealthninja Aug 31, 2024
b752f55
fix: add <cstdint> to graham_scan_functions.hpp
realstealthninja Aug 31, 2024
549aad5
fix: add <cstdint> to graph/**
realstealthninja Aug 31, 2024
2ec9d7f
fix: add integral typdefs to hashing/**
realstealthninja Aug 31, 2024
afd4ccb
fix: add <cstdint> to math/**
realstealthninja Aug 31, 2024
8740df0
fix: add <cstdint> to numerical_methods/**
realstealthninja Aug 31, 2024
6357548
fix: add <cstdint> to other/**
realstealthninja Aug 31, 2024
52ff5e8
fix: add <cstdint> to search/**
realstealthninja Aug 31, 2024
4707b72
fix: add <cstdint> to sorting/**
realstealthninja Aug 31, 2024
ba64b3c
fix: add <cstdint> to string/**
realstealthninja Aug 31, 2024
52b2afe
doc: remove include statement from comment
realstealthninja Aug 31, 2024
3aa689c
Merge branch 'master' into cstdint
realstealthninja Aug 31, 2024
e6bafa6
Merge branch 'master' into cstdint
realstealthninja Sep 2, 2024
56d17d9
Merge branch 'master' into cstdint
realstealthninja Sep 2, 2024
a147054
Merge branch 'master' into cstdint
realstealthninja Sep 3, 2024
d1b4566
Merge branch 'master' into cstdint
Panquesito7 Sep 4, 2024
fad74e8
fix: make tests static
realstealthninja Sep 4, 2024
f063687
fix: make tests static
realstealthninja Sep 4, 2024
11c5fde
Merge branch 'master' into cstdint
realstealthninja Sep 4, 2024
55f3d1d
Merge branch 'master' into cstdint
realstealthninja Sep 5, 2024
f0a30d7
chore: use iwyu on backtracking/**.cpp
realstealthninja Sep 13, 2024
7edcb6e
chore: use iwyu on bit_manip/**.cpp
realstealthninja Sep 13, 2024
3d80295
chore: use iwyu on ciphers/**.cpp
realstealthninja Sep 13, 2024
24e597f
chore: use iwyu on cpu_scheduling_algorithms/**.cpp
realstealthninja Sep 13, 2024
a3b719e
chore: use iwyu on data_structures/**.cpp
realstealthninja Sep 13, 2024
16ee49e
chore: use iwyu on divide_and_conquer/**.cpp
realstealthninja Sep 13, 2024
740bd65
chore: use iwyu on geometry/**.cpp
realstealthninja Sep 13, 2024
dabd6d2
chore: use iwyu on graph/**.cpp
realstealthninja Sep 13, 2024
0c6611a
chore: use iwyu on hashing/**.cpp
realstealthninja Sep 13, 2024
c3897d3
chore: use iwyu on machine_learning/**.cpp
realstealthninja Sep 13, 2024
c47117c
chore: use iwyu on math/**.cpp
realstealthninja Sep 13, 2024
eff2f44
chore: use iwyu on numerical_methods/**.cpp
realstealthninja Sep 13, 2024
8a8fd42
chore: use iwyu on others/**.cpp
realstealthninja Sep 13, 2024
5dd7f82
chore: use iwyu on probablity/**.cpp
realstealthninja Sep 13, 2024
19d136a
chore: use iwyu on search/**.cpp
realstealthninja Sep 13, 2024
a290ae7
chore: use iwyu on sorting/**.cpp
realstealthninja Sep 13, 2024
f212745
chore: use iwyu on strings/**.cpp
realstealthninja Sep 13, 2024
00c5e91
Revert "chore: use iwyu on strings/**.cpp"
realstealthninja Sep 13, 2024
cb6eaed
Revert "chore: use iwyu on sorting/**.cpp"
realstealthninja Sep 13, 2024
8e99858
Revert "chore: use iwyu on search/**.cpp"
realstealthninja Sep 13, 2024
958088f
Revert "chore: use iwyu on probablity/**.cpp"
realstealthninja Sep 13, 2024
1694bde
Revert "chore: use iwyu on others/**.cpp"
realstealthninja Sep 13, 2024
5b65101
Revert "chore: use iwyu on numerical_methods/**.cpp"
realstealthninja Sep 13, 2024
d9e6762
Revert "chore: use iwyu on math/**.cpp"
realstealthninja Sep 13, 2024
3b86feb
Revert "chore: use iwyu on machine_learning/**.cpp"
realstealthninja Sep 13, 2024
fe87144
Revert "chore: use iwyu on hashing/**.cpp"
realstealthninja Sep 13, 2024
0ed3409
Revert "chore: use iwyu on graph/**.cpp"
realstealthninja Sep 13, 2024
5300883
Revert "chore: use iwyu on geometry/**.cpp"
realstealthninja Sep 13, 2024
380127e
Revert "chore: use iwyu on divide_and_conquer/**.cpp"
realstealthninja Sep 13, 2024
1901732
Revert "chore: use iwyu on data_structures/**.cpp"
realstealthninja Sep 13, 2024
d0af25f
Revert "chore: use iwyu on cpu_scheduling_algorithms/**.cpp"
realstealthninja Sep 13, 2024
d8895b7
Revert "chore: use iwyu on ciphers/**.cpp"
realstealthninja Sep 13, 2024
7920c50
Revert "chore: use iwyu on bit_manip/**.cpp"
realstealthninja Sep 13, 2024
bcae88d
Revert "chore: use iwyu on backtracking/**.cpp"
realstealthninja Sep 13, 2024
8d7f865
Merge branch 'master' into cstdint
realstealthninja Sep 13, 2024
f60bc8b
Update search/binary_search.cpp
realstealthninja Sep 30, 2024
523d02e
Update backtracking/subarray_sum.cpp
realstealthninja Sep 30, 2024
9c35a06
Update backtracking/subset_sum.cpp
realstealthninja Sep 30, 2024
4e49a13
Update backtracking/wildcard_matching.cpp
realstealthninja Sep 30, 2024
9a1c789
Update bit_manipulation/count_bits_flip.cpp
realstealthninja Sep 30, 2024
8a7eec5
Update bit_manipulation/count_of_set_bits.cpp
realstealthninja Sep 30, 2024
503f3ae
Update bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp
realstealthninja Sep 30, 2024
c6e8264
Update bit_manipulation/hamming_distance.cpp
realstealthninja Sep 30, 2024
b31776d
Update bit_manipulation/next_higher_number_with_same_number_of_set_bi…
realstealthninja Sep 30, 2024
20073f3
Update bit_manipulation/power_of_2.cpp
realstealthninja Sep 30, 2024
f509005
Update others/lru_cache.cpp
realstealthninja Sep 30, 2024
12f0d52
Update bit_manipulation/set_kth_bit.cpp
realstealthninja Sep 30, 2024
49f0be3
Update bit_manipulation/travelling_salesman_using_bit_manipulation.cpp
realstealthninja Sep 30, 2024
deaecb9
Update ciphers/base64_encoding.cpp
realstealthninja Sep 30, 2024
f94271c
Update ciphers/hill_cipher.cpp
realstealthninja Sep 30, 2024
054e37c
Update ciphers/uint128_t.hpp
realstealthninja Sep 30, 2024
b34dbff
Update cpu_scheduling_algorithms/fcfs_scheduling.cpp
realstealthninja Sep 30, 2024
b20f01c
Update data_structures/dsu_path_compression.cpp
realstealthninja Sep 30, 2024
465eb7b
Update data_structures/dsu_union_rank.cpp
realstealthninja Sep 30, 2024
04c9f15
Update data_structures/list_array.cpp
realstealthninja Sep 30, 2024
bbbd9ab
Update data_structures/queue_using_array.cpp
realstealthninja Sep 30, 2024
227e9d2
Update data_structures/sparse_table.cpp
realstealthninja Sep 30, 2024
572bb35
Update data_structures/stack_using_queue.cpp
realstealthninja Sep 30, 2024
5e53d92
Update data_structures/treap.cpp
realstealthninja Sep 30, 2024
99839c3
Update geometry/graham_scan_functions.hpp
realstealthninja Sep 30, 2024
21446ef
Update graph/bidirectional_dijkstra.cpp
realstealthninja Sep 30, 2024
7ccca60
Update graph/connected_components_with_dsu.cpp
realstealthninja Sep 30, 2024
d6ea502
Update graph/cycle_check_directed_graph.cpp
realstealthninja Sep 30, 2024
016a2d8
Update graph/is_graph_bipartite2.cpp
realstealthninja Sep 30, 2024
929af50
Update graph/travelling_salesman_problem.cpp
realstealthninja Sep 30, 2024
5d6fa2b
Update hashing/md5.cpp
realstealthninja Sep 30, 2024
ac91c01
Update hashing/sha1.cpp
realstealthninja Sep 30, 2024
1abafa4
Update math/n_choose_r.cpp
realstealthninja Sep 30, 2024
10373fe
Update strings/z_function.cpp
realstealthninja Sep 30, 2024
ca6577d
Update strings/manacher_algorithm.cpp
realstealthninja Sep 30, 2024
6c2158e
Update sorting/wiggle_sort.cpp
realstealthninja Sep 30, 2024
4b6c5ff
Update sorting/selection_sort_recursive.cpp
realstealthninja Sep 30, 2024
15f8b88
Update sorting/selection_sort_iterative.cpp
realstealthninja Sep 30, 2024
70393b7
Update sorting/recursive_bubble_sort.cpp
realstealthninja Sep 30, 2024
f526abe
Update sorting/radix_sort2.cpp
realstealthninja Sep 30, 2024
929f1ee
Update sorting/dnf_sort.cpp
realstealthninja Sep 30, 2024
768534b
Update sorting/cycle_sort.cpp
realstealthninja Sep 30, 2024
01e2635
Update search/sublist_search.cpp
realstealthninja Sep 30, 2024
c1949c1
Update search/saddleback_search.cpp
realstealthninja Sep 30, 2024
eb9043c
Update search/interpolation_search.cpp
realstealthninja Sep 30, 2024
e01b493
Update search/floyd_cycle_detection_algo.cpp
realstealthninja Sep 30, 2024
f042a15
Update search/exponential_search.cpp
realstealthninja Sep 30, 2024
10e2edb
Update search/exponential_search.cpp
realstealthninja Sep 30, 2024
cd84f82
Merge branch 'master' into cstdint
realstealthninja Sep 30, 2024
229bb39
Update math/n_bonacci.cpp
realstealthninja Sep 30, 2024
35b6bfc
Update math/aliquot_sum.cpp
realstealthninja Sep 30, 2024
78cb6ea
Update math/check_factorial.cpp
realstealthninja Sep 30, 2024
cb98ef5
Update math/double_factorial.cpp
realstealthninja Sep 30, 2024
cb6ac14
Update math/eulers_totient_function.cpp
realstealthninja Sep 30, 2024
16d4ed9
Update math/factorial.cpp
realstealthninja Sep 30, 2024
af35499
Update math/fibonacci.cpp
realstealthninja Sep 30, 2024
0ddbef6
Update math/fibonacci_matrix_exponentiation.cpp
realstealthninja Sep 30, 2024
57722cc
Update math/fibonacci_sum.cpp
realstealthninja Sep 30, 2024
a7c8741
Update math/finding_number_of_digits_in_a_number.cpp
realstealthninja Sep 30, 2024
db9ebd9
chore: remove "/// for integral typedefs"
realstealthninja Sep 30, 2024
2d7f443
chore: remove for integral typedefs from modular division
realstealthninja Sep 30, 2024
2f03640
Merge branch 'master' into cstdint
realstealthninja Oct 4, 2024
39cd383
fix: remove comment from include
realstealthninja Oct 4, 2024
accd220
Merge branch 'TheAlgorithms:master' into cstdint
realstealthninja Oct 4, 2024
030431f
fix: add cstdint to gale shapely
realstealthninja Oct 4, 2024
d40099a
Merge branch 'master' into cstdint
realstealthninja Oct 6, 2024
4e4d931
Merge branch 'master' into cstdint
realstealthninja Oct 10, 2024
89001cc
Merge branch 'master' into cstdint
realstealthninja Nov 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backtracking/subarray_sum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/

#include <cassert> /// for assert
#include <cstdint>
#include <iostream> /// for IO operations
#include <unordered_map> /// for unordered_map
#include <vector> /// for std::vector
Expand Down
1 change: 1 addition & 0 deletions backtracking/subset_sum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

#include <cassert> /// for assert
#include <cstdint>
#include <iostream> /// for IO operations
#include <vector> /// for std::vector

Expand Down
1 change: 1 addition & 0 deletions backtracking/wildcard_matching.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/

#include <cassert> /// for assert
#include <cstdint>
#include <iostream> /// for IO operations
#include <vector> /// for std::vector

Expand Down
1 change: 1 addition & 0 deletions bit_manipulation/count_bits_flip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* @author [Yash Raj Singh](https://github.com/yashrajyash)
*/
#include <cassert> /// for assert
#include <cstdint>
#include <iostream> /// for IO operations
/**
* @namespace bit_manipulation
Expand Down
1 change: 1 addition & 0 deletions bit_manipulation/count_of_set_bits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* @author [Prashant Thakur](https://github.com/prashant-th18)
*/
#include <cassert> /// for assert
#include <cstdint>
#include <iostream> /// for IO operations
/**
* @namespace bit_manipulation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/

#include <cassert> /// for assert
#include <cstdint>
#include <iostream> /// for IO operations

/**
Expand Down
1 change: 1 addition & 0 deletions bit_manipulation/hamming_distance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/

#include <cassert> /// for assert
#include <cstdint>
#include <iostream> /// for io operations

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

#include <cassert> /// for assert
#include <cstdint>
#include <iostream> /// for IO operations

/**
Expand Down
1 change: 1 addition & 0 deletions bit_manipulation/power_of_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

#include <cassert> /// for assert
#include <cstdint>
#include <iostream> /// for IO operations

/**
Expand Down
1 change: 1 addition & 0 deletions bit_manipulation/set_kth_bit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

#include <cassert> /// for assert
#include <cstdint>
#include <iostream> /// for IO operations

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
*/
#include <algorithm> /// for std::min
#include <cassert> /// for assert
#include <cstdint>
#include <iostream> /// for IO operations
#include <limits> /// for limits of integral types
#include <vector> /// for std::vector
Expand Down
1 change: 1 addition & 0 deletions ciphers/base64_encoding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/
#include <array> /// for `std::array`
#include <cassert> /// for `assert` operations
#include <cstdint>
#include <iostream> /// for IO operations

/**
Expand Down
1 change: 1 addition & 0 deletions ciphers/hill_cipher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <ctime>
#include <fstream>
Expand Down
1 change: 1 addition & 0 deletions ciphers/uint128_t.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

#include <algorithm> /// for `std::reverse` and other operations
#include <cstdint>
#include <ostream> /// for `std::cout` overload
#include <string> /// for `std::string`
#include <utility> /// for `std::pair` library
Expand Down
1 change: 1 addition & 0 deletions cpu_scheduling_algorithms/fcfs_scheduling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include <algorithm> /// for sorting
#include <cassert> /// for assert
#include <cstdint>
#include <cstdlib> /// random number generation
#include <ctime> /// for time
#include <iomanip> /// for formatting the output
Expand Down
1 change: 1 addition & 0 deletions data_structures/dsu_path_compression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

#include <cassert> /// for assert
#include <cstdint>
#include <iostream> /// for IO operations
#include <vector> /// for std::vector

Expand Down
1 change: 1 addition & 0 deletions data_structures/dsu_union_rank.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*/

#include <cassert> /// for assert
#include <cstdint>
#include <iostream> /// for IO operations
#include <vector> /// for std::vector

Expand Down
Loading
Loading