"Definitely nice to think of this without memorization, but there is a well known algorithm for this problem, which is the Levenshtein Distance.
Lev(a,b) = len(a) if len(b) == 0
= len(b) if len(a) == 0
= lev(a[1:], b[1:] if a[0] == b[0]
= 1 + min (lev(a, b[1:]), lev(a[1:], b), lev(a[1:], b[1:]))
https://en.wikipedia.org/wiki/Levenshtein_distance
I'm sure some optimizations could be made with heuristic."
Nicholas S. - "Definitely nice to think of this without memorization, but there is a well known algorithm for this problem, which is the Levenshtein Distance.
Lev(a,b) = len(a) if len(b) == 0
= len(b) if len(a) == 0
= lev(a[1:], b[1:] if a[0] == b[0]
= 1 + min (lev(a, b[1:]), lev(a[1:], b), lev(a[1:], b[1:]))
https://en.wikipedia.org/wiki/Levenshtein_distance
I'm sure some optimizations could be made with heuristic."See full answer
"The solution produces the same result as the 'prescribed solution' yet it does not get accepted In the test results section
transcript['year'] = transcript['year'].astype(str)
df = pd.pivottable(data = transcript, index = 'studentid', columns = 'year', values = 'yearlygpa', aggfunc = 'mean').resetindex()
df = df[(df['2021'] < df['2022']) & (df['2022'] < df['2023'])]
df['average_gpa'] = df[['2021', '2022', '2023']].mean(axis=1).round(2)
return df
"
Prachi G. - "The solution produces the same result as the 'prescribed solution' yet it does not get accepted In the test results section
transcript['year'] = transcript['year'].astype(str)
df = pd.pivottable(data = transcript, index = 'studentid', columns = 'year', values = 'yearlygpa', aggfunc = 'mean').resetindex()
df = df[(df['2021'] < df['2022']) & (df['2022'] < df['2023'])]
df['average_gpa'] = df[['2021', '2022', '2023']].mean(axis=1).round(2)
return df
"See full answer
"As I understand it, you’d like me to design a mobile native application (for iOS or Android) that helps people manipulate data similar to that of Microsoft Excel or Google Sheets. You can add and import data, edit it, run calculations, regressions, and generate charts and graphs.
If it’s ok with you, I’d like to confine the design to iOS, and based on my knowledge of how a product manager uses a spreadsheet.
I’d like to approach this problem by first identifying the goal of the app. Since we’r"
David I. - "As I understand it, you’d like me to design a mobile native application (for iOS or Android) that helps people manipulate data similar to that of Microsoft Excel or Google Sheets. You can add and import data, edit it, run calculations, regressions, and generate charts and graphs.
If it’s ok with you, I’d like to confine the design to iOS, and based on my knowledge of how a product manager uses a spreadsheet.
I’d like to approach this problem by first identifying the goal of the app. Since we’r"See full answer
Product Design
🧠Want an expert answer to a question? Saving questions lets us know what content to make next.
"Clarifying questions:
Location: Mountian view campus. [Google has campuses across the world and for the interview purpose design the product for Mountian view campus]
Assumption : Scope of the design is on-campus travel purpose between buildings.
Product: Digital product
Target Customer segments
Meetings: Googlers who takes bikes to commute to a different build for meetings.
a. Goal: On-Time for meetings
Lunch or breakfast: Lunch spot co-ordinat"
S K. - "Clarifying questions:
Location: Mountian view campus. [Google has campuses across the world and for the interview purpose design the product for Mountian view campus]
Assumption : Scope of the design is on-campus travel purpose between buildings.
Product: Digital product
Target Customer segments
Meetings: Googlers who takes bikes to commute to a different build for meetings.
a. Goal: On-Time for meetings
Lunch or breakfast: Lunch spot co-ordinat"See full answer
"This is a Design a Product question. For this, we'll want to follow the formula for success:
Ask clarifying questions
Identify user types, behaviors, and pain points
State the goal and use cases
List current solutions
Improvements / net new solutions
Evaluate and select solutions
Measure Success
Summarize
Ask clarifying questions
It's important to get clarity on anything unclear. Asking questions also helps us limit scope early on s"
Exponent - "This is a Design a Product question. For this, we'll want to follow the formula for success:
Ask clarifying questions
Identify user types, behaviors, and pain points
State the goal and use cases
List current solutions
Improvements / net new solutions
Evaluate and select solutions
Measure Success
Summarize
Ask clarifying questions
It's important to get clarity on anything unclear. Asking questions also helps us limit scope early on s"See full answer
"Reproduce the bug, read error messages, isolate the problem, use a debugger, check assumptions, review recent changes, consult documentation, Text Edge Cases, take break"
Jennifer C. - "Reproduce the bug, read error messages, isolate the problem, use a debugger, check assumptions, review recent changes, consult documentation, Text Edge Cases, take break"See full answer
"The first aspect to review before any task is who is/are the ultimate 'owner' for this job? The next thing to consider is 'repetitiveness' of the job itself. The job can be simple or complex. For simple and the ownership factor align with my team... then that task is delegated. If the job is complex and the team ultimately owns the task, then I provide careful support to guide in the right direction."
Prasad M. - "The first aspect to review before any task is who is/are the ultimate 'owner' for this job? The next thing to consider is 'repetitiveness' of the job itself. The job can be simple or complex. For simple and the ownership factor align with my team... then that task is delegated. If the job is complex and the team ultimately owns the task, then I provide careful support to guide in the right direction."See full answer
"This is a Favorite Product question with a slight twist. We have a constraint: picking an e-commerce store. This should be relatively easy since we use e-commerce stores every day. Let's go over the Favorite Product formula before we begin:
Choose a product and briefly explain what it is
Who are the users?
What are their pain points?
How did competitors solve it in the past?
How does this product address these pain points differently and better?
**How wo"
Exponent - "This is a Favorite Product question with a slight twist. We have a constraint: picking an e-commerce store. This should be relatively easy since we use e-commerce stores every day. Let's go over the Favorite Product formula before we begin:
Choose a product and briefly explain what it is
Who are the users?
What are their pain points?
How did competitors solve it in the past?
How does this product address these pain points differently and better?
**How wo"See full answer
"This is a Technical question. It tests your ability to understand high level technical concepts. Even though your job won't have any coding involved, you'll still need to understand these concepts. Being able to cover all these topics with clarity communicates confidence in your interviewer.
Unfortunately, there's no formula for technical questions, but some general tips are:
Use analogies when you can
Break your solution into clear, bite-size steps
Don't be afraid to use examples to b"
Exponent - "This is a Technical question. It tests your ability to understand high level technical concepts. Even though your job won't have any coding involved, you'll still need to understand these concepts. Being able to cover all these topics with clarity communicates confidence in your interviewer.
Unfortunately, there's no formula for technical questions, but some general tips are:
Use analogies when you can
Break your solution into clear, bite-size steps
Don't be afraid to use examples to b"See full answer
""When a customer makes a request, I always listen carefully and make sure I understand what they need. I stay calm, friendly, and professional."
شيماء ا. - ""When a customer makes a request, I always listen carefully and make sure I understand what they need. I stay calm, friendly, and professional."See full answer
"Let's assume that the school furniture includes Table, Chair and Whiteboard. Now, the first step is to find the number of students in the U.S
Let's assume that the population of the U.S is 300M. Let's assume that Americans start education at 5 years old till 25 for undergrad. It means Americans spend 20 years of their life in school. Average living years for people is 80.
20/80 * 100 = 25%. It means 25% of the American population attends college.
25/100*300M = 75M.
So, there are 75M students"
Anonymous Shrimp - "Let's assume that the school furniture includes Table, Chair and Whiteboard. Now, the first step is to find the number of students in the U.S
Let's assume that the population of the U.S is 300M. Let's assume that Americans start education at 5 years old till 25 for undergrad. It means Americans spend 20 years of their life in school. Average living years for people is 80.
20/80 * 100 = 25%. It means 25% of the American population attends college.
25/100*300M = 75M.
So, there are 75M students"See full answer
"If I get to live my life again I will try to be more confident, it took me a life time to get some confidence and to be what I am today, I ll try to be less dependent on others, I ll work for women empowerment."
Umaira K. - "If I get to live my life again I will try to be more confident, it took me a life time to get some confidence and to be what I am today, I ll try to be less dependent on others, I ll work for women empowerment."See full answer
"This is a Design a Product question. For this, we'll want to follow the formula for success:
Ask clarifying questions
Identify user types, behaviors, and pain points
State the goal and use cases
List current solutions
Improvements / net new solutions
Evaluate and select solutions
Measure Success
Summarize
Ask clarifying questions
It's important to get clarity on anything unclear. Asking questions also helps us limit scope early on s"
Exponent - "This is a Design a Product question. For this, we'll want to follow the formula for success:
Ask clarifying questions
Identify user types, behaviors, and pain points
State the goal and use cases
List current solutions
Improvements / net new solutions
Evaluate and select solutions
Measure Success
Summarize
Ask clarifying questions
It's important to get clarity on anything unclear. Asking questions also helps us limit scope early on s"See full answer
"What is Slack ?
Slack is a basic instant messaging app usually used in the intra office space , allowing teams to communicate .Also , it includes video & voice calls . In a nutshell , it provides an efficient team communications solutions .
2 Goals of Google/ Position in the market ? To create innovative solutions to customer problems .
The focus is on providing accessible information to everyone .
3 Synergy of such a product with google : Slack allows efficient team communication ."
Pragya S. - "What is Slack ?
Slack is a basic instant messaging app usually used in the intra office space , allowing teams to communicate .Also , it includes video & voice calls . In a nutshell , it provides an efficient team communications solutions .
2 Goals of Google/ Position in the market ? To create innovative solutions to customer problems .
The focus is on providing accessible information to everyone .
3 Synergy of such a product with google : Slack allows efficient team communication ."See full answer