Algorithm · OpenAI · Hard
Problem: Channel Message Dispatcher for AwayBot, TacoBot, and MeetBot A chat channel includes three automated accounts: awayBot, tacoBot, and meetBot. Whenever someone posts a message, the system must determine whether it is a bot-directed message—for example, one that refers to a bot with @ or another agreed-upon syntax—and invoke every applicable bot to emit its automated reply. Build a simplified message dispatcher/router for these bots: Input: messages arrive as a…
Checking your access…