Position: Software Engineer
Location: NYC
Question 1:
https://leetcode.com/problems/divide-two-integers/
Question 2:
You are given a map where key is city and value is population. Write a method that returns a random city but randomness is weighted by population of city. Ex: if NYC is 8M and Dallas is 4M, then method should return NYC twice as much as Dallas.
I think the closest leetcode question is: https://leetcode.com/problems/random-pick-with-weight/
I did not clear the 1st round.
Good luck to all and keep leetcoding!