Facebook | Phone Screen | Product of Array Except Self & Random Pick with Weight

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2019-09-03Added By Anonymous
Source: Link

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

Original Post Content:

Duration: 40 mins

Question 1:
https://leetcode.com/problems/product-of-array-except-self

Question 2:
Variation of https://leetcode.com/problems/random-pick-with-weight
    Given a list of cities and the population, pick randomly any city based on the population: "NY": 5M, "CA": 10M, "WS": 2M

Comments