Preparing for an interview? Check out Cracking the Coding Interview
Published on

Meta | E6 | MPK Phone Screen

Author
  • Shared Anonymously

Hi,

I wanted to give back to this forum for helping me out with Interview prep and specifically on questions being asked recently. The Interview process:

  1. Standard Behavioral questions in the first 15 minutes:
    a. Describe a project that is personal to you, in which you demonstrated ownership.
    b. Describe a challenging project with multiple stakeholders in which collaboration and conflict resolution was key.

  2. 1 non-standard non-FB tagged (LC medium) question:
    Implement a 'median' image filter function that takes an input, output, a kernel width param, along with height and width. The function must write every output pixel. Each output pixel is the median of a square of k-by-k input image values, centered at the corresponding location in the input image.

I walked through an example, confirmed my understanding and broke down the problem. Implemented a 2-step approach, first-step a helper to get the kxk grid given an index and a function to compute median. They said assume sorting is done for the grid, so I gave the run-time and space-complexity. Code was a bit buggy but they were satisfied.

Moving on to onsite loop now.

ReportMark as Helpful