Facebook | Phone | Print reversed linked list & Insert Interval

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-05-30Added By Anonymous
Source: Link

Company: Meta
Role: e3, e4
Interview Stage: Phone Screen
Location: Seattle, Washington
Year: unknown

Original Post Content:

Location: Seattle, Washington

Questions asked:

1. Print reverse of linkedlist
given linked list head 5 -> 6 -> 7 -> 2-> null
print 2 7 6 5
2. Insert interval https://leetcode.com/problems/insert-interval/

First question I answered and explained with all edge cases.
Second question, first I discussed the technique to solve the question. Interviewer provided right pointers which helped me code the questions properly. Also did some dry runs with edge cases.
I had interview two days ago, I haven't heard anything. Is it a reject?

Finally got a call from Recruiter. I am invited for virtual onsite!!

Comments