Facebook | Phone | Copy List with Random Pointer & Add Strings
Company: Meta (Facebook)
Role: e3
Interview Stage: Phone Screen
Location: Seattle
Year: 2020
Original Post Content:
I was asked 2 questions:
1. https://leetcode.com/problems/copy-list-with-random-pointer/
2. A variation of https://leetcode.com/problems/add-strings/
Where input strings can contain decimals (and of course large large numbers that any string-to-int built-in operations cannot be used directly on the given number).
Both of these questions weren't DS intensive.
Both of these questions should come under "Medium" level difficulty in LeetCode.
Interviewer was easy going, not paying too much attention on smaller edge cases.
Coding was on C++, and showing-off modern C++ skills were taken positively.
My solutions:
1. copy-list-with-random-pointer:
(Code snippets not included in this formatting.)
2. Add strings (assumption string lengths are of equal size)
(Code snippets not included in this formatting.)
Update:
I was invited for the onsite rounds. You can read my post here: Facebook Onsite Seattle Feb 2020