Facebook | Phone | HTML Snippet
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2019-11-26Added By Anonymous
Source: Link
Company: Meta (Facebook)
Role: e3, e4
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
Image showing the problem description (not displayed): https://assets.leetcode.com/users/hanqianha/image_1574733653.png
Just met the question in my last Friday's interview. Seems like the variation of LC591, a hard one. The question asked to return the valid first N chars, like if N = 30, it is shown in the snapshot, if N is 2, none is valid, so return "". If N is 7, return <p></p>. Each char counts for 1.
I do not manage to solve it in the interview (performed well in the first round), so I got an additional interview. Does anyone know how to solve it?