"#inplace reversal without inbuilt functions
def reverseString(s):
chars = list(s)
l, r = 0, len(s)-1
while l < r:
chars[l],chars[r] = chars[r],chars[l]
l += 1
r -= 1
reversed = "".join(chars)
return reversed
"
Anonymous Possum - "#inplace reversal without inbuilt functions
def reverseString(s):
chars = list(s)
l, r = 0, len(s)-1
while l < r:
chars[l],chars[r] = chars[r],chars[l]
l += 1
r -= 1
reversed = "".join(chars)
return reversed
"See full answer
"SELECT
u.user_id,
u.user_name,
u.email,
ROUND(AVG(CASE WHEN b.status = 'Unmatched' THEN 1.0 ELSE 0 END), 2) AS avgunmatchedbookings
FROM
users u
LEFT JOIN
bookings b ON u.userid = b.userid
GROUP BY
u.user_id,
u.user_name,
u.email;
`"
Akshay D. - "SELECT
u.user_id,
u.user_name,
u.email,
ROUND(AVG(CASE WHEN b.status = 'Unmatched' THEN 1.0 ELSE 0 END), 2) AS avgunmatchedbookings
FROM
users u
LEFT JOIN
bookings b ON u.userid = b.userid
GROUP BY
u.user_id,
u.user_name,
u.email;
`"See full answer
"INTERVIEWER: Design a communication app for children
ME: GOAL: What are the business goals for this initiative?
INTERVIEWER: Please assume.
ME: Goals could be to* *improve communication skills/ communicate with classmates/friends better/enter a new market/empower children with disability to communicate better/etc.
I’ll assume that the goal here is to enable children to communicate and engage better with their classmates since I have personally seen my niece and nephew (17 a"
Priya T. - "INTERVIEWER: Design a communication app for children
ME: GOAL: What are the business goals for this initiative?
INTERVIEWER: Please assume.
ME: Goals could be to* *improve communication skills/ communicate with classmates/friends better/enter a new market/empower children with disability to communicate better/etc.
I’ll assume that the goal here is to enable children to communicate and engage better with their classmates since I have personally seen my niece and nephew (17 a"See full answer
"Understand the business problem: Identify the business problem that the AI data product is intended to solve.
Identify the target audience: Understand who will be using the data and what problem they will be solving for using the data. This will inform the features and functionality that should be included in the product.
Gather and preprocess the data: Collect and preprocess the data that is relevant to the problem that it is being solved for. This will inform the AI algorithm"
M D. - "Understand the business problem: Identify the business problem that the AI data product is intended to solve.
Identify the target audience: Understand who will be using the data and what problem they will be solving for using the data. This will inform the features and functionality that should be included in the product.
Gather and preprocess the data: Collect and preprocess the data that is relevant to the problem that it is being solved for. This will inform the AI algorithm"See full answer
"By increasing the number of paid users, I assume we mean that we want to increase the % of DAUs who pay for YT Music.
First, we need to understand the Youtube Music play here.
Youtube Music was carved out of Youtube because Spotify and Apple Music were getting popular. Users were listening to music on Spotify instead of on Youtube, threatening ad revenue for Youtube. Therefore, Youtube Music was born as a standalone app, where users could listen to the music ad free from anywhere anytime.
In"
Priyansh J. - "By increasing the number of paid users, I assume we mean that we want to increase the % of DAUs who pay for YT Music.
First, we need to understand the Youtube Music play here.
Youtube Music was carved out of Youtube because Spotify and Apple Music were getting popular. Users were listening to music on Spotify instead of on Youtube, threatening ad revenue for Youtube. Therefore, Youtube Music was born as a standalone app, where users could listen to the music ad free from anywhere anytime.
In"See full answer
"Clarifying question:
Am I the first one to notice the fire, or there are people already on it?
Extent and source of fire - I am assuming it's localized and I am inside the data center, safe so far.
Response:
It is an emergency. I will do and coordinate the people to do the following in parallel, if I am the first one to know.
Get immediate attention of folks in the data center. Get someone and many people to call 911 and security. Coordinate to have people in need evacuated.
Turn off th"
Bg - "Clarifying question:
Am I the first one to notice the fire, or there are people already on it?
Extent and source of fire - I am assuming it's localized and I am inside the data center, safe so far.
Response:
It is an emergency. I will do and coordinate the people to do the following in parallel, if I am the first one to know.
Get immediate attention of folks in the data center. Get someone and many people to call 911 and security. Coordinate to have people in need evacuated.
Turn off th"See full answer
"I broke down my answer into Understanding the goal, investigating the current state and its challenges, prioritizing opportunities, brainstorming solutions, and selecting solutions.
To understand the goal and current state, I asked questions about the onboarding funnel and the conversion percentages. They have clear metrics to share, with the specific conversion rates for each stage.
I then identified the subscription screen in the flow as one of the key opportunities, as most of the drop happ"
Jaison E. - "I broke down my answer into Understanding the goal, investigating the current state and its challenges, prioritizing opportunities, brainstorming solutions, and selecting solutions.
To understand the goal and current state, I asked questions about the onboarding funnel and the conversion percentages. They have clear metrics to share, with the specific conversion rates for each stage.
I then identified the subscription screen in the flow as one of the key opportunities, as most of the drop happ"See full answer
"You're the PM for all of Instagram Stories. What is your North Star metric?
Meta's Mission: Give people the power to build community and bring the world
closer together.
IG's Mission: To capture and share the world's moments
User Types
Marketplace / 2-sided ecosystem
Creators and the Consumers
Metric Categories
Adoption
Engagement
Retention
[not pictured]: create a table with 2 columns: Creators and Consumers and 3 rows: Adoption, Engagement, Retention.
Talked through and priori"
Daniel L. - "You're the PM for all of Instagram Stories. What is your North Star metric?
Meta's Mission: Give people the power to build community and bring the world
closer together.
IG's Mission: To capture and share the world's moments
User Types
Marketplace / 2-sided ecosystem
Creators and the Consumers
Metric Categories
Adoption
Engagement
Retention
[not pictured]: create a table with 2 columns: Creators and Consumers and 3 rows: Adoption, Engagement, Retention.
Talked through and priori"See full answer
"Background Context
I'm a PM at a venture-backed SaaS in the legal tech space. We provide end-to-end contract management experience for our customers with the following features:
Upload - Contracts signed in DocuSign, etc. automatically uploaded to our system through API integrations.
Data Extraction - Contract terms such as payment terms and key dates are automatically OCRed and extracted using ML.
Analytics - Contract terms are searchable, filter, and customize for reporting.
Work"
Christopher K. - "Background Context
I'm a PM at a venture-backed SaaS in the legal tech space. We provide end-to-end contract management experience for our customers with the following features:
Upload - Contracts signed in DocuSign, etc. automatically uploaded to our system through API integrations.
Data Extraction - Contract terms such as payment terms and key dates are automatically OCRed and extracted using ML.
Analytics - Contract terms are searchable, filter, and customize for reporting.
Work"See full answer
"Product Bugs can be categorised by severity associated with them.
Product Roadmap prioritization happens by MuSCoW technique, or WSJF for big ticket items.
Suggestions from Leadership normally fall in expedited bucket.
Overall, if there's a Scrum way of executing all priorities, then the PO and Team get together to decide the scope of the sprints for execution."
Anonymous Salmon - "Product Bugs can be categorised by severity associated with them.
Product Roadmap prioritization happens by MuSCoW technique, or WSJF for big ticket items.
Suggestions from Leadership normally fall in expedited bucket.
Overall, if there's a Scrum way of executing all priorities, then the PO and Team get together to decide the scope of the sprints for execution."See full answer
"Clarifying Questions and Assumption:
It is a Online store or a offline store ? Assuming it is an online store
There would be multiple processes, for which process the CSAT score needs to be increased ? Assuming the CSAT score needs to be increased for product search & checkout process.
Does this required for Mobile App or Website ? assuming mobile app
Mission & goal:
CSAT score of online search process for Costco needs to be increased.
User personas:
Working profession"
Brajendra S. - "Clarifying Questions and Assumption:
It is a Online store or a offline store ? Assuming it is an online store
There would be multiple processes, for which process the CSAT score needs to be increased ? Assuming the CSAT score needs to be increased for product search & checkout process.
Does this required for Mobile App or Website ? assuming mobile app
Mission & goal:
CSAT score of online search process for Costco needs to be increased.
User personas:
Working profession"See full answer
"Clarifying Questions
How do we define restaurants? Do only delivery/ pick up outlets qualify? : No. Consider only places where people can sit and eat
Do restaurants within hotels count? : No
Should I include cafes too? : Yes
Can I assume the year to be 2024?: Yes
Are we looking at specific areas within Bangalore or entire city ? : Entire city
Here's how I will approach this question. I will divide Bangalore into places with High, medium and low population density. This is a relat"
Kartikeya N. - "Clarifying Questions
How do we define restaurants? Do only delivery/ pick up outlets qualify? : No. Consider only places where people can sit and eat
Do restaurants within hotels count? : No
Should I include cafes too? : Yes
Can I assume the year to be 2024?: Yes
Are we looking at specific areas within Bangalore or entire city ? : Entire city
Here's how I will approach this question. I will divide Bangalore into places with High, medium and low population density. This is a relat"See full answer
"First, let me clarify a few points to ensure I understand the scope of the case study correctly:
• Scope of Resources and Timeline: Are there any constraints on resources or timeline we should consider, or can we assume unlimited resources for this project?
• Target Market: Is this tool aimed at a global market or specific regions?
• Integration: Should the tool integrate with existing TikTok Shop features, or are we developing a standalone solution?
• Technological Capabilities: Are there s"
Vihari K. - "First, let me clarify a few points to ensure I understand the scope of the case study correctly:
• Scope of Resources and Timeline: Are there any constraints on resources or timeline we should consider, or can we assume unlimited resources for this project?
• Target Market: Is this tool aimed at a global market or specific regions?
• Integration: Should the tool integrate with existing TikTok Shop features, or are we developing a standalone solution?
• Technological Capabilities: Are there s"See full answer
"Clarify the question. Any specific system?
Will study the related systems in the environment.
Will define the goal, attributes of the system, stakeholders expectations, problems this system is going to address in case these things don't exist already.
With the above two steps, I Will come up with a draft of the System KPI.
Will run it with leadership, stakeholders and will incorporate feedback.
In parallel, will come up with quantification on these performance factors.
Fina"
Anonymous Krill - "Clarify the question. Any specific system?
Will study the related systems in the environment.
Will define the goal, attributes of the system, stakeholders expectations, problems this system is going to address in case these things don't exist already.
With the above two steps, I Will come up with a draft of the System KPI.
Will run it with leadership, stakeholders and will incorporate feedback.
In parallel, will come up with quantification on these performance factors.
Fina"See full answer
"Hey, Thanks for the question - it’s an interesting real-life existing problem wherein a few of my friends and colleagues who have tried to work and travel have faced these issues at their respective airBnBs.
Cool so this is the rough backbone structure that we can follow and ofcourse we can add meat later on to it and pivot if required. So here it goes:
First would like to lay out the broader mission of Airbnb + WHY this is needed as to why we are doing this and
then some clarific"
Adarsh S. - "Hey, Thanks for the question - it’s an interesting real-life existing problem wherein a few of my friends and colleagues who have tried to work and travel have faced these issues at their respective airBnBs.
Cool so this is the rough backbone structure that we can follow and ofcourse we can add meat later on to it and pivot if required. So here it goes:
First would like to lay out the broader mission of Airbnb + WHY this is needed as to why we are doing this and
then some clarific"See full answer