Object-Oriented Programming · Snapchat · Medium
Requirements Create an autocomplete/search-suggestion class with this interface: The class must satisfy these rules: Build the current search prefix from the characters supplied so far. For every non-terminal character, return no more than three sentences that begin with the current prefix. Order results by decreasing usage count. If two sentences have the same count, order them lexicographically using ASCII ordering. When the terminal character '#' is received, treat the…
Checking your access…