Facebook| Phone screen| All even number, add string

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-08-21Added By Anonymous
Source: Link

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

Original Post Content:

45-50 mins of Online Interview - Coderpad.

First 5 mins: Introduction
40Min: Coding Round
Last 5 Mins: Asking any questions

First interview: https://leetcode.com/problems/binary-tree-level-order-traversal-ii/

I coded in 7-8 min but couldn't give correct time complexity. The interviewer digs more into the time complexity. eventually, he helped and explained time complexity.
I felt dumb and thought I lose the opportunity. but next day recruiter email to have schedule phone screening again.

second interview: 2 questions:
1. Given a list/array of integers, return a boolean that states whether all numbers appear an even number of times.

Example:

Input: [3, 1, 2, 1, 2, 3]
Output: true

Input: [1, 2, 1]
Output: false

2. add two large positive string.
variation of https://leetcode.com/problems/add-strings/
Example:

Input: '209.23', '9089'
Output: '9298.23'

Level: Unknown
Location: Austin
Still waiting for result.

Comments