2 popular questions:
- emitter
Write subscribe and execute using ES6 class, store event queue in an object, the follow-up is release. - exclude
First, convert the exclude array into a Map[key, Set(…values)].
Then, use filtering with map and set to simplify by finding O(1).
Let’s do the onsite next year; I don’t want to prepare for interviews during the holidays anymore.