Optiver Interview Question
OptiverSoftware Engineer Interview
Complete a function that takes in a seqId (int) and a char at a time. Char consists of a-z and '-'. The seqId's are out of order. A full message when the chars are sorted by seqId is in this format: "-FullMessage-". The goal is to print out any full message exactly when it completes. When it does, prints out that message using provided OnComplete(msg) function.
Unlock the Full Solution
Enter your email to get instant access to the complete solution, explanation, and similar practice problems.