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

Anonymous User
4508
Sep 03, 2019
Sep 05, 2019

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 (7)