Phrase Tokenizer
xAI interview questions · Hard · Coding round · 6 tests
Retokenize a space-separated sentence by greedily merging the longest matching dictionary phrase.
The full question, tests and reference solution are available with a plan that includes xAI.
Run your code with Ctrl+Enter to see results.