Facebook | Phone | Valid Palindrome 2 & Word Break 2

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-02-03Added By Anonymous
Source: Link

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

Original Post Content:

Date: Feb 2020
Two questions: 45mins (10mins intro + 15mins each question + 5min final notes )

Question 1:
https://leetcode.com/articles/valid-palindrome-ii/
Ex1: "aba" --> True
Ex2: "aaba" --> True
Ex3: "abcda" --> False

Question 2:
Sentence formation with given dictionary https://leetcode.com/problems/word-break-ii/
Dictionary = ["the" , "cat", "i", "is", "black"]
String = "thecatisblack"
Return "the cat is black"

Comments