Meta Screening ( July 2024 )

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-07-22Added By Anonymous
Source: Link

Company: Meta
Role: unknown
Interview Stage: Screening
Location: unknown
Year: 2024

Original Post Content:

Screening Failed !! Had easier questions than mock interviews (which had questions from leetcode) but screening questions were not from the leetcode and so it appears to be predetermined decisions to reject

1> Given a string, find all the occurrence of maximum length substring with repeating character and list in the order it appears.
Example : aaabbaaaccc , output => ['a','a','c'].
Gave O(n) time + O(n) space (coz strings like "abcabcbacaba" will all be listed as each character of max length 1, which interviewer seems to not see the case and I think is likely the reason I was given negative).

2> Given an ordered array of integer and a target value, find the number of times the target appeared in an array. Pretty simple Binary Search, O(log n) time and O(1) space.

Both the codes were very clean, commented with test case !! Maybe interviews have higher bar these days as I have cleared Facebook screening with much worst performance in past. Little disappointed.

Comments