Facebook Phone Screen - REJECT

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2021-03-05Added By Anonymous
Source: Link

Company: Meta (Facebook)
Role: e3, e4
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

First Phone Screen

Return true or false if sub array has sum K
Return all sub arrays having sum K

I used sliding window technique instead of unordered_map because of nervousness.

He asked will it work for negative sum and negative integers. Was a shocker for me, but I fixed it :)

Code had minor bugs pointed by interviewer and fixed all of them immediately.

Was asked to do second phone screen

Given an income and tax brackets, calculate tax ...wrote code

Design Tic tac toe. Not aware of this problem...didn't implement it :(

Update: REJECT

Comments