-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolution130.hpp
More file actions
37 lines (33 loc) · 764 Bytes
/
Solution130.hpp
File metadata and controls
37 lines (33 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Solution130.hpp
// Algorithm
//
// Created by Pancf on 2020/12/20.
// Copyright © 2020 Pancf. All rights reserved.
//
#ifndef Solution130_hpp
#define Solution130_hpp
#include <stdio.h>
#include <vector>
class Solution130 {
public:
void solve(std::vector<std::vector<char>>& board);
static void test()
{
std::vector<std::vector<char>> board{
{'X', 'X', 'X', 'X'},
{'X', 'O', 'O', 'X'},
{'X', 'X', 'O', 'X'},
{'X', 'O', 'X', 'X'}
};
Solution130 s;
s.solve(board);
for (auto row : board) {
for (auto cell : row) {
printf("%c\t", cell);
}
printf("\n");
}
}
};
#endif /* Solution130_hpp */