MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / wordBreak

Function wordBreak

dynamic_programming/word_break.cpp:131–147  ·  view source on GitHub ↗

* @brief Function that checks if the string passed in param can be * segmented into the strings present in the vector. * In others words, it checks if any permutation of strings in * the vector can be concatenated to form the final string. * * @param s the complete string to be segmented * @param wordDict a vector of words to be used as dictionary to look into * @returns `true` if s can be

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

testFunction · 0.85
mainFunction · 0.85

Calls 2

checkFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected