word-break 1.0.0
Word Break
Loading...
Searching...
No Matches
main.cpp File Reference
#include <iostream>
#include <vector>
#include <string>
#include <unordered_set>
Include dependency graph for main.cpp:

Go to the source code of this file.

Data Structures

class  Solution
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 44 of file main.cpp.

45{
46 // string input = "catsandog";
47 // vector<string> dictionary = {"cats","dog","sand","and","cat"};
48 string input = "leetcode";
49 vector<string> dictionary = {"leet", "code"};
50 Solution sol;
51 cout << "output: " << sol.wordBreak(input, dictionary) << endl;
52 return 0;
53}
bool wordBreak(string s, vector< string > &wordDict)
Definition main.cpp:11

References Solution::wordBreak().