Meta Frontend Interview Questions I was asked

2 popular questions:

  1. emitter
    Write subscribe and execute using ES6 class, store event queue in an object, the follow-up is release.
  2. 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.