"def mostefficientseqscore(parentheses, efficiencyratings):
mes = []
for i in range(len(parentheses)):
mes.append((parentheses[i], max(efficiency_ratings[i]))
return sum([m[1] for m in mes])
`"
Nathan C. - "def mostefficientseqscore(parentheses, efficiencyratings):
mes = []
for i in range(len(parentheses)):
mes.append((parentheses[i], max(efficiency_ratings[i]))
return sum([m[1] for m in mes])
`"See full answer
"In the Transformer architecture, the decoder differs from the encoder primarily in its additional mechanisms designed to handle autoregressive sequence generation. Here's a breakdown of the key differences:
Self-Attention Mechanism:
Encoder: The encoder has a standard self-attention mechanism that allows each token to attend to all other tokens in the input sequence.
Decoder: The decoder has two types of self-attention. The first is the same as in the encoder, but the second is mas"
Ranj A. - "In the Transformer architecture, the decoder differs from the encoder primarily in its additional mechanisms designed to handle autoregressive sequence generation. Here's a breakdown of the key differences:
Self-Attention Mechanism:
Encoder: The encoder has a standard self-attention mechanism that allows each token to attend to all other tokens in the input sequence.
Decoder: The decoder has two types of self-attention. The first is the same as in the encoder, but the second is mas"See full answer
"Clarifying Questions
Improve Netflix; Geography? India
Vision - Becoming the best global entertainment distribution service
Objective:
Growth
Engagement
Retention
I would focus on Growth because
Highly growing adoption of internet
increasing purchasing power in T2&T3
Indian consumers are constantly in need of finding new content to watch
aligned with Netflix strategy of producing content for indian masses
I believe Netflix has a really good immersive viewing/wathcing"
Sandeep K. - "Clarifying Questions
Improve Netflix; Geography? India
Vision - Becoming the best global entertainment distribution service
Objective:
Growth
Engagement
Retention
I would focus on Growth because
Highly growing adoption of internet
increasing purchasing power in T2&T3
Indian consumers are constantly in need of finding new content to watch
aligned with Netflix strategy of producing content for indian masses
I believe Netflix has a really good immersive viewing/wathcing"See full answer
"clarify:
so does the 5% drop a sudden drop or overtime in the one week
does it broadly drop 5% or it dropped only in some regions or in some segments like new acqusition / frequent active customers?
or does the 5% drop also happened last year same period?
DAU = acqusition x activation x retention
segment:
I will first quickly do some EDA to find out problem, like calculate the DAU drop in new customer, tenured customer, between regions to find out is there any difference.
then I will also look"
Yuexiang Y. - "clarify:
so does the 5% drop a sudden drop or overtime in the one week
does it broadly drop 5% or it dropped only in some regions or in some segments like new acqusition / frequent active customers?
or does the 5% drop also happened last year same period?
DAU = acqusition x activation x retention
segment:
I will first quickly do some EDA to find out problem, like calculate the DAU drop in new customer, tenured customer, between regions to find out is there any difference.
then I will also look"See full answer
Data Scientist
Analytical
🧠Want an expert answer to a question? Saving questions lets us know what content to make next.
"Step 1 - clarifying question:
Are we just focusing on the customer who rented a car or both who has given a car? (Assumed only a customer who rented a car)
Are we just focusing on the mobile or web apps? (Assumed only the mobile app)
Step 2 -Define users:
customer who rented a car.
Step 3 - pain points:
unclear communication between both parties.
lack of support if needed.
hassle-full car drop experience.
No survey or complaint channel about how the experienc"
Jatan P. - "Step 1 - clarifying question:
Are we just focusing on the customer who rented a car or both who has given a car? (Assumed only a customer who rented a car)
Are we just focusing on the mobile or web apps? (Assumed only the mobile app)
Step 2 -Define users:
customer who rented a car.
Step 3 - pain points:
unclear communication between both parties.
lack of support if needed.
hassle-full car drop experience.
No survey or complaint channel about how the experienc"See full answer
"there's no audio the last ~10 minutes from the interviewer so we can't get a sense of the feedback from the interviewer.
I did think it took the interviewee a little too long to figure out the issue itself and could have benefited from taking some time to think and gather thoughts before jumping into drivers of the issue."
Sabi M. - "there's no audio the last ~10 minutes from the interviewer so we can't get a sense of the feedback from the interviewer.
I did think it took the interviewee a little too long to figure out the issue itself and could have benefited from taking some time to think and gather thoughts before jumping into drivers of the issue."See full answer
"First, I would like to discuss and align what is meaningful social interaction. Given facebook's mission to empower users to build communities and get people closer, it is important that users have "meaningful social interaction"
The goal of defining this metric is to use this as a north star or success metric around any efforts to increase engagement. It can also help with ads targeting/monetization by showing ads only during deeper interactions and hence might get better yield.
Given faceb"
Praveen - "First, I would like to discuss and align what is meaningful social interaction. Given facebook's mission to empower users to build communities and get people closer, it is important that users have "meaningful social interaction"
The goal of defining this metric is to use this as a north star or success metric around any efforts to increase engagement. It can also help with ads targeting/monetization by showing ads only during deeper interactions and hence might get better yield.
Given faceb"See full answer
"in simple words, linear regression helps in predicting the value whereas logistics regression helps in predicting the binary classification.
But lets talk through some example
Linear regression model: E-commerce website pricing recommendation engine is built on linear regression model where we do have some variables such as competitor price, internal economics and consumer demand etc when we put this in a supervised learning model, it helps in predicting prices
Logistics regression model"
Anonymous Aardvark - "in simple words, linear regression helps in predicting the value whereas logistics regression helps in predicting the binary classification.
But lets talk through some example
Linear regression model: E-commerce website pricing recommendation engine is built on linear regression model where we do have some variables such as competitor price, internal economics and consumer demand etc when we put this in a supervised learning model, it helps in predicting prices
Logistics regression model"See full answer
"Question:
If Meta Pay did not exist, would you recommend that Meta develop its own payment solution internally or seek a partnership? Justify your decision.
Answer:
Given Meta's position as a leading technology company with a vast ecosystem of applications and services, I would recommend that Meta develop its own payment solution internally. My decision is based on several key factors:
Strategic Control and Flexibility
Developing an internal payment solution would gran"
Inae L. - "Question:
If Meta Pay did not exist, would you recommend that Meta develop its own payment solution internally or seek a partnership? Justify your decision.
Answer:
Given Meta's position as a leading technology company with a vast ecosystem of applications and services, I would recommend that Meta develop its own payment solution internally. My decision is based on several key factors:
Strategic Control and Flexibility
Developing an internal payment solution would gran"See full answer
"Imagine a blockchain as a magical, unchangeable diary that keeps track of all the candies you share with your friends. Whenever you share a candy, you write it down in this special diary, and your friends also write it down in their diaries. But here's the cool part – all the diaries are connected and can talk to each other!
So, when you want to know who has borrowed your candy or if you borrowed candy from someone else, you just check this special diary. It shows you the history of all the can"
Maedu E. - "Imagine a blockchain as a magical, unchangeable diary that keeps track of all the candies you share with your friends. Whenever you share a candy, you write it down in this special diary, and your friends also write it down in their diaries. But here's the cool part – all the diaries are connected and can talk to each other!
So, when you want to know who has borrowed your candy or if you borrowed candy from someone else, you just check this special diary. It shows you the history of all the can"See full answer
"You can ask some clarifying questions like
1) Ask if the list is already sorted or not
2) is zero included in the list ?
3) Natural numbers are usually positive numbers ( clarify they are non negatives)
Solution :
1) If sorted use two pointers and sort them in O(N)
2) if not sorted , -ve / only +ve numbers in the list doesn't matter - the easiest solution is
Use a priority queue and push the number and its square in each iteration
Finally return the list returned by the priority Queue. N"
Bless M. - "You can ask some clarifying questions like
1) Ask if the list is already sorted or not
2) is zero included in the list ?
3) Natural numbers are usually positive numbers ( clarify they are non negatives)
Solution :
1) If sorted use two pointers and sort them in O(N)
2) if not sorted , -ve / only +ve numbers in the list doesn't matter - the easiest solution is
Use a priority queue and push the number and its square in each iteration
Finally return the list returned by the priority Queue. N"See full answer
"Clarifying question: Why would google want to sunset Youtube? What would the business objective be?
Based on how the interviewer responds this could go down multiple paths:
If they said just because, then I would address the current state data for the YouTube business.
Material benefits:
XX Million active users
$$ in Annual revenue
$$ in subscription revenue
$$ monetization through influencers
Non-material benefits that align to google core values:
Democracy on the web works"
Aditi N. - "Clarifying question: Why would google want to sunset Youtube? What would the business objective be?
Based on how the interviewer responds this could go down multiple paths:
If they said just because, then I would address the current state data for the YouTube business.
Material benefits:
XX Million active users
$$ in Annual revenue
$$ in subscription revenue
$$ monetization through influencers
Non-material benefits that align to google core values:
Democracy on the web works"See full answer
"Clarify:
Product: physical/ digital? - digital
chefs as a profession? what kind of restaurant setting do they work in?
speed up cooking why/ objective? - serve customers quickly? reduce their fatigue? help them spend time on other important activities?
what is cooking process - getting order - knowing recipe - executing - placing in dish - should I consider serving or that will be including in the waitor's job?
By how much do we want to speed up?
who are we?
any constraints?"
Rev - "Clarify:
Product: physical/ digital? - digital
chefs as a profession? what kind of restaurant setting do they work in?
speed up cooking why/ objective? - serve customers quickly? reduce their fatigue? help them spend time on other important activities?
what is cooking process - getting order - knowing recipe - executing - placing in dish - should I consider serving or that will be including in the waitor's job?
By how much do we want to speed up?
who are we?
any constraints?"See full answer
"I believe human emotions can't be judged by number and hence I have always made mistakes while judging the outcome of a reaction by data."
Mc L. - "I believe human emotions can't be judged by number and hence I have always made mistakes while judging the outcome of a reaction by data."See full answer
"Redefining the question as: How will you solve the problem of misinformation on FB?
Clarifying questions:
Are we talking about building a product? (Up to you)
What exactly is misinformation? (Fake news, inaccurate facts being shared on social media)
Goal: Reduce the amount of misinformation spread on the platform and improve user trust.
Key users associated with misinformation:
News Accounts (eg CNN) - They may get involved in some controversy about a fake photoshopped artic"
P K. - "Redefining the question as: How will you solve the problem of misinformation on FB?
Clarifying questions:
Are we talking about building a product? (Up to you)
What exactly is misinformation? (Fake news, inaccurate facts being shared on social media)
Goal: Reduce the amount of misinformation spread on the platform and improve user trust.
Key users associated with misinformation:
News Accounts (eg CNN) - They may get involved in some controversy about a fake photoshopped artic"See full answer