Facebook / Meta | Phone | Delete KthNode/ Make Valid Parantheses
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2022-01-26Added By Anonymous
Source: Link
Company: Meta
Role: e4
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
Hi, I was asked two medium level questions.
Question 1: https://leetcode.com/problems/remove-nth-node-from-end-of-list/
Question 2: https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/
Gave O(n) time and O(1) space solution for first one.
Gave O(n) time and O(n) space solution [using StringBuilder] for second one.
YoE: 3.5 yrs