MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / exact_cover

Method exact_cover

code/other/algorithm_x.cpp:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 bool **arr;
10 node *head;
11 exact_cover(int _rows, int _cols)
12 : rows(_rows), cols(_cols), head(NULL) {
13 arr = new bool*[rows];
14 sol = new int[rows];
15 rep(i,0,rows)
16 arr[i] = new bool[cols], memset(arr[i], 0, cols); }
17 void set_value(int row, int col, bool val = true) {
18 arr[row][col] = val; }
19 void setup() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected