counting-words-with-a-given-prefix 1.0.0
Counting Words With a Given Prefix
Loading...
Searching...
No Matches
main.cpp File Reference
#include <bits/stdc++.h>
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 26 of file main.cpp.

27{
28 vector<string> words = {"pay","attention","practice","attend"};
29 string prefix = "at";
30 cout << "output: " << Solution().prefixCount(words, prefix) << endl;
31 return 0;
32}
int prefixCount(vector< string > &words, string pref)
Definition main.cpp:8

References Solution::prefixCount().