1. The most success and failure customers
| 三个input table,第一个table是customer id 和name,第二个table是campaign
id, customer id和campaign name,第三个table是campaign id 和 success / failure,要求output success 最多和failure最多的customer。
id, customer id和campaign name,第三个table是campaign id 和 success / failure,要求output success 最多和failure最多的customer。
2. Ratio of acceptor
两个input table,分别是blood donor和acceptor,算每个城市donor:acceptor的ratio
output出ratio最高和最低的。
output出ratio最高和最低的。
3. How to test a probability problem
During the interview, a follow-up question was asked about how to test a probability problem. Discuss the approach you would take to test such a problem, including any considerations for edge cases and the use of global variables and pointers, especially in the context of Python's shallow copy and deep copy.
4. Calculate Business Interaction Weights
Given a list of user interactions with businesses on Yelp, where each interaction type has a specific weight (review: 1, comment: 2, liked: 0.3, etc.), write a function to calculate the total weight for each business ID. Then, sort the businesses by descending total weight and ascending business ID, and return a list of the sorted business IDs.
5. Evaluating Overall Effectiveness from Multiple A/B Tests
If ten separate A/B tests each show a 5% improvement, and the product manager claims a total improvement of 50%, how would you assess this claim?