jackbodine / you-complete-me Goto Github PK
View Code? Open in Web Editor NEWA program to implement autocomplete for a given set of N terms, where a term is a string (a word) and an associated nonnegative weight. That is, given a prefix, find all terms that start with the given prefix, in descending order of weight.