Skip to content

Commit bcae88d

Browse files
Revert "chore: use iwyu on backtracking/**.cpp"
This reverts commit f0a30d7.
1 parent 7920c50 commit bcae88d

10 files changed

+27
-38
lines changed

backtracking/generate_parentheses.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
1212
*/
1313

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

1918
/**
2019
* @brief Backtracking algorithms

backtracking/graph_coloring.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
* @author [David Leal](https://github.com/Panquesito7)
1919
*/
2020

21-
#include <array> // for array
22-
#include <cstddef> // for size_t
23-
#include <iostream> // for operator<<, cout, basic_ostream, basic_ostream::...
21+
#include <array> /// for std::array
22+
#include <iostream> /// for IO operations
23+
#include <vector> /// for std::vector
2424

2525
/**
2626
* @namespace backtracking

backtracking/knight_tour.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
* @author [Nikhil Arora](https://github.com/nikhilarora068)
1414
* @author [David Leal](https://github.com/Panquesito7)
1515
*/
16-
#include <array> // for array
17-
#include <cstddef> // for size_t
18-
#include <iostream> // for char_traits, operator<<, basic_ostream, cout
16+
#include <array> /// for std::array
17+
#include <iostream> /// for IO operations
1918

2019
/**
2120
* @namespace backtracking

backtracking/minimax.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@
1616
* @author [Gleison Batista](https://github.com/gleisonbs)
1717
* @author [David Leal](https://github.com/Panquesito7)
1818
*/
19-
#include <algorithm> // for max, min
20-
#include <array> // for array
21-
#include <cmath> // for log2
22-
#include <cstddef> // for size_t
23-
#include <iostream> // for char_traits, basic_ostream, basic_ostream::oper...
19+
#include <algorithm> /// for std::max, std::min
20+
#include <array> /// for std::array
21+
#include <cmath> /// for log2
22+
#include <iostream> /// for IO operations
2423

2524
/**
2625
* @namespace backtracking

backtracking/n_queens.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
* @author [David Leal](https://github.com/Panquesito7)
1616
*
1717
*/
18-
#include <array> // for array
19-
#include <cstddef> // for size_t
20-
#include <iostream> // for operator<<, basic_ostream, cout, basic_ostream::...
18+
#include <array>
19+
#include <iostream>
2120

2221
/**
2322
* @namespace backtracking

backtracking/n_queens_all_solution_optimised.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
* @author [David Leal](https://github.com/Panquesito7)
88
*/
99

10-
#include <array> // for array
11-
#include <cstddef> // for size_t
12-
#include <iostream> // for cout, basic_ostream, endl, basic_ostream::operat...
10+
#include <array>
11+
#include <iostream>
1312

1413
/**
1514
* @namespace backtracking

backtracking/nqueen_print_all_solutions.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
* @author [David Leal](https://github.com/Panquesito7)
88
*
99
*/
10-
#include <array> // for array
11-
#include <cstddef> // for size_t
12-
#include <iostream> // for cout, basic_ostream, endl, basic_ostream::operat...
13-
10+
#include <array> /// for std::array
11+
#include <iostream> /// for IO operations
1412

1513
/**
1614
* @namespace backtracking

backtracking/rat_maze.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616
* @author [David Leal](https://github.com/Panquesito7)
1717
*/
1818

19-
#include <array> // for array
20-
#include <cassert> // for assert
21-
#include <cstddef> // for size_t
22-
#include <iostream> // for cout, basic_ostream, basic_ostream::operator<<
19+
#include <array> /// for std::array
20+
#include <cassert> /// for assert
21+
#include <iostream> /// for IO operations
2322

2423
/**
2524
* @namespace backtracking

backtracking/sudoku_solver.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515
* @author [DarthCoder3200](https://github.com/DarthCoder3200)
1616
* @author [David Leal](https://github.com/Panquesito7)
1717
*/
18-
#include <array> // for array
19-
#include <cstddef> // for size_t
20-
#include <iostream> // for basic_ostream, char_traits, cout, operator<<
21-
18+
#include <array> /// for assert
19+
#include <iostream> /// for IO operations
2220

2321
/**
2422
* @namespace backtracking

backtracking/wildcard_matching.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
* @author [Swastika Gupta](https://github.com/Swastyy)
1212
*/
1313

14-
#include <cassert> // for assert
15-
#include <cstdint> // for uint32_t, int64_t
16-
#include <iostream> // for basic_ostream, operator<<, char_traits, cout, endl
17-
#include <vector> // for vector
18-
#include <string> // for basic_string, string
14+
#include <cassert> /// for assert
15+
#include <cstdint> /// for integral typedefs
16+
#include <iostream> /// for IO operations
17+
#include <vector> /// for std::vector
1918

2019
/**
2120
* @namespace backtracking

0 commit comments

Comments
 (0)