Skip to content

Commit

Permalink
chore: use iwyu on backtracking/**.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
realstealthninja committed Sep 13, 2024
1 parent 55f3d1d commit f0a30d7
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 27 deletions.
7 changes: 4 additions & 3 deletions backtracking/generate_parentheses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
*/

#include <cassert> /// for assert
#include <iostream> /// for I/O operation
#include <vector> /// for vector container
#include <cassert> // for assert
#include <iostream> // for char_traits, operator<<, basic_ostream, cout
#include <vector> // for allocator, vector, operator==
#include <string> // for basic_string, string, operator+, operator==

/**
* @brief Backtracking algorithms
Expand Down
6 changes: 3 additions & 3 deletions backtracking/graph_coloring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
* @author [David Leal](https://github.com/Panquesito7)
*/

#include <array> /// for std::array
#include <iostream> /// for IO operations
#include <vector> /// for std::vector
#include <array> // for array
#include <cstddef> // for size_t
#include <iostream> // for operator<<, cout, basic_ostream, basic_ostream::...

/**
* @namespace backtracking
Expand Down
5 changes: 3 additions & 2 deletions backtracking/knight_tour.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
* @author [Nikhil Arora](https://github.com/nikhilarora068)
* @author [David Leal](https://github.com/Panquesito7)
*/
#include <array> /// for std::array
#include <iostream> /// for IO operations
#include <array> // for array
#include <cstddef> // for size_t
#include <iostream> // for char_traits, operator<<, basic_ostream, cout

/**
* @namespace backtracking
Expand Down
9 changes: 5 additions & 4 deletions backtracking/minimax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
* @author [Gleison Batista](https://github.com/gleisonbs)
* @author [David Leal](https://github.com/Panquesito7)
*/
#include <algorithm> /// for std::max, std::min
#include <array> /// for std::array
#include <cmath> /// for log2
#include <iostream> /// for IO operations
#include <algorithm> // for max, min
#include <array> // for array
#include <cmath> // for log2
#include <cstddef> // for size_t
#include <iostream> // for char_traits, basic_ostream, basic_ostream::oper...

/**
* @namespace backtracking
Expand Down
5 changes: 3 additions & 2 deletions backtracking/n_queens.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
* @author [David Leal](https://github.com/Panquesito7)
*
*/
#include <array>
#include <iostream>
#include <array> // for array
#include <cstddef> // for size_t
#include <iostream> // for operator<<, basic_ostream, cout, basic_ostream::...

/**
* @namespace backtracking
Expand Down
5 changes: 3 additions & 2 deletions backtracking/n_queens_all_solution_optimised.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
* @author [David Leal](https://github.com/Panquesito7)
*/

#include <array>
#include <iostream>
#include <array> // for array
#include <cstddef> // for size_t
#include <iostream> // for cout, basic_ostream, endl, basic_ostream::operat...

/**
* @namespace backtracking
Expand Down
6 changes: 4 additions & 2 deletions backtracking/nqueen_print_all_solutions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
* @author [David Leal](https://github.com/Panquesito7)
*
*/
#include <array> /// for std::array
#include <iostream> /// for IO operations
#include <array> // for array
#include <cstddef> // for size_t
#include <iostream> // for cout, basic_ostream, endl, basic_ostream::operat...


/**
* @namespace backtracking
Expand Down
7 changes: 4 additions & 3 deletions backtracking/rat_maze.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
* @author [David Leal](https://github.com/Panquesito7)
*/

#include <array> /// for std::array
#include <cassert> /// for assert
#include <iostream> /// for IO operations
#include <array> // for array
#include <cassert> // for assert
#include <cstddef> // for size_t
#include <iostream> // for cout, basic_ostream, basic_ostream::operator<<

/**
* @namespace backtracking
Expand Down
6 changes: 4 additions & 2 deletions backtracking/sudoku_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
* @author [DarthCoder3200](https://github.com/DarthCoder3200)
* @author [David Leal](https://github.com/Panquesito7)
*/
#include <array> /// for assert
#include <iostream> /// for IO operations
#include <array> // for array
#include <cstddef> // for size_t
#include <iostream> // for basic_ostream, char_traits, cout, operator<<


/**
* @namespace backtracking
Expand Down
9 changes: 5 additions & 4 deletions backtracking/wildcard_matching.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
* @author [Swastika Gupta](https://github.com/Swastyy)
*/

#include <cassert> /// for assert
#include <cstdint> /// for integral typedefs
#include <iostream> /// for IO operations
#include <vector> /// for std::vector
#include <cassert> // for assert
#include <cstdint> // for uint32_t, int64_t
#include <iostream> // for basic_ostream, operator<<, char_traits, cout, endl
#include <vector> // for vector
#include <string> // for basic_string, string

/**
* @namespace backtracking
Expand Down

0 comments on commit f0a30d7

Please sign in to comment.