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

Function comp

CPP/Tries/autoComplete.cpp:47–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47bool comp(pair <string,int> p1, pair <string,int>p2){
48 if (p1.second>=p2.second) return true;
49 return false;
50}
51
52void searchAndPrint(vector <pair<string,int> > &words, TrieNode *root, string &prefix){
53 TrieNode *temp=root;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected