Location Canada
BS.C Comp Sci
9 YOE - fairly large companies, non faang
Recruiter - was very nice and helpful. He gave me a lot of resources and instructed me to attend a facebook organized workshop detailing the interview proccess and what they like to see.
Study - I did about 20-25 questions on LC all medium/hard
Interview:
The person doing it was very nice and friendly. I felt he gave good hints and only when it seemed i struggled with something.
First question was
Implement a shell function to move directories, ie:
if user is in /home/user and they type /../../var/www/..
What's the final result...? ie-- /var
I had not seen it, used a stack approach. Was asked a followup question to handle if the user inputs something like /..../ (more than 2 periods)
Got that part done as well.
Second question:
Given an m x n matrix, print the diagonals.
Never seen this before, the diagonals all went one way and i solved it using a recursive approach, i wrote most of the code and got stuck for a solid 7-10 min on something incredibly silly. A few hints from the interviewer made me realize i made a mistake in my thinking and was trying to solve a problem that didnt actually exist...
I was not asked about space/time complexity. I completely forgot to mention it, but both were super straight forward problems and required no optimisation.
Received an email the following day to proceed to next steps.
My 2 cents:
I've conducted interviews for the last 3 companies I worked for. For one, i made final decision on hiring. They were no where near FAANG caliber, much easier. But the same idea..
Will i pass the virtual onsite.. probably not :). I have little time to study, so we'll see how lucky i get on the questions. I will post a follow up..