MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / exist

Function exist

CPP/questions/word-search.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34bool exist(vector<vector<char>> &board, string word) {
35
36 for(int i=0; i < board.size(); i++) {
37 for(int j = 0; j < board[0].size(); j++) {
38 if(solve(board, word, 0, i, j))
39 return true;
40 }
41 }
42
43 return false;
44}
45
46int main() {
47 vector<vector<char>> board = {

Callers 1

mainFunction · 0.85

Calls 2

solveFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected