Facebook 1st stage interview | Solutions Engineer | Berlin | March 2020 [Reject]

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-04-05Added By Anonymous
Source: Link

Company: Meta
Role: Solutions Engineer
Interview Stage: Phone Screen
Location: Berlin
Year: 2020

Original Post Content:

Had a coding interview via Bluejeans with a guy from the London office, who was incredibly nice and created a great atmosphere. I guess up until this point it's the normal SDE process, since he wasn't a solutions engineer. I didn't pass, but thought I'd share some details on how the question was asked in my case for people who are as unexperienced with coding interviews as I am.

Problem: Minesweeper, (not this LC version)

  • Part 1: "Generate a minesweeper field with n bombs that are randomly distributed". Interviewer asked if I knew the game and provided a sample grid in the text editor.Created a 2-dim array and generated n random x and y values as bombs. Forgot to check if the randomly generated bomb is already a bomb.
  • Part 2: "Create adjacency values. Every cell has to contain the number of adjacent bombs". Interviewer provided a sample grid with some example for adjacency values.My grid looked like this: -1 are mines and all the other cells in the matrix contain adjacency values. My second bug: I forgot to not increment the -1 values when creating the adjacency values.

For both bugs he asked whether the solution is working and gave me time to find the bug myself - which was nice. I didn't need help in fixing the thing, but I guess in order to pass you need to get it right at first try.

Comments