"
Compare alternate houses i.e for each house starting from the third, calculate the maximum money that can be stolen up to that house by choosing between:
Skipping the current house and taking the maximum money stolen up to the previous house.
Robbing the current house and adding its value to the maximum money stolen up to the house two steps back.
package main
import (
"fmt"
)
// rob function calculates the maximum money a robber can steal
func maxRob(nums []int) int {
ln"
VContaineers - "
Compare alternate houses i.e for each house starting from the third, calculate the maximum money that can be stolen up to that house by choosing between:
Skipping the current house and taking the maximum money stolen up to the previous house.
Robbing the current house and adding its value to the maximum money stolen up to the house two steps back.
package main
import (
"fmt"
)
// rob function calculates the maximum money a robber can steal
func maxRob(nums []int) int {
ln"See full answer
"QUESTION: Imagine that you are a PM that owns the post booking experience at Airbnb.How would you solve for the worst post-booking experience?
Follow-up questions:
Specific business goal in mind? (no)
What is my scope? Do I own all post booking across product category? Or is there a specific product that I am focussing on (events, homes, specific home duration)? (you chose)
Am I focussing on the user - renter or event goer? Or the creator - host or event creator? (your choice)
Do yo"
Anonymous Aardvark - "QUESTION: Imagine that you are a PM that owns the post booking experience at Airbnb.How would you solve for the worst post-booking experience?
Follow-up questions:
Specific business goal in mind? (no)
What is my scope? Do I own all post booking across product category? Or is there a specific product that I am focussing on (events, homes, specific home duration)? (you chose)
Am I focussing on the user - renter or event goer? Or the creator - host or event creator? (your choice)
Do yo"See full answer
"I will divide my answer in 2 parts:
Process I use for managing risks in any Project
I will explain a real life situation where a Risk occurred and how I managed it
Process for Risk Management can be broken down into 3 parts:
Risk Identification: Risk identification is a team effort and is an ongoing process that happens throughout the Project. Technical Risks are usually identified during design/build/testing stage. I maintain a Risk register document to capture all the risks identified"
Saket S. - "I will divide my answer in 2 parts:
Process I use for managing risks in any Project
I will explain a real life situation where a Risk occurred and how I managed it
Process for Risk Management can be broken down into 3 parts:
Risk Identification: Risk identification is a team effort and is an ongoing process that happens throughout the Project. Technical Risks are usually identified during design/build/testing stage. I maintain a Risk register document to capture all the risks identified"See full answer
"In the API design, the interviewer is switching between RPC style (operation based endpoints) and REST style (resource oriented). Sticking to one convention and explaining why it is preferred over the other e.g. REST if the twitter domain maps nicely to resources e.g. /tweet or /follower or /user would help to create a more consistent and unified API. It would make it easier for clients to integrate with the API as well."
dreamingincode - "In the API design, the interviewer is switching between RPC style (operation based endpoints) and REST style (resource oriented). Sticking to one convention and explaining why it is preferred over the other e.g. REST if the twitter domain maps nicely to resources e.g. /tweet or /follower or /user would help to create a more consistent and unified API. It would make it easier for clients to integrate with the API as well."See full answer
Engineering Manager
System Design
+1 more
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"Prompt: We work for an online shopping website. Our team wants to consider offering discounts (e.g. 10% off your next purchase) to customers to incentivize them to make purchases. How would you design a system that decides how to offer these incentives?
Answer
Goals: Increase customer engagement while controlling costs. Specifically, we want the increase in revenue per customer per week of customers that receive the discount to be greater than the cost of the discount.
Metrics: Revenue per cu"
Michael F. - "Prompt: We work for an online shopping website. Our team wants to consider offering discounts (e.g. 10% off your next purchase) to customers to incentivize them to make purchases. How would you design a system that decides how to offer these incentives?
Answer
Goals: Increase customer engagement while controlling costs. Specifically, we want the increase in revenue per customer per week of customers that receive the discount to be greater than the cost of the discount.
Metrics: Revenue per cu"See full answer
"Question for the community: have others experienced a situation where the interviewer really pushed for defining a success metric early on in the case before making too much progress on the case itself? If so, how did you handle?
How I approached the case:
I used the framework taught here on Exponent but have a question for the community.
At the beginning of the interview, I shared my steps - company goals, customer, painpoints, solutions, prioritize and if we had time, I'll explore some succ"
D P. - "Question for the community: have others experienced a situation where the interviewer really pushed for defining a success metric early on in the case before making too much progress on the case itself? If so, how did you handle?
How I approached the case:
I used the framework taught here on Exponent but have a question for the community.
At the beginning of the interview, I shared my steps - company goals, customer, painpoints, solutions, prioritize and if we had time, I'll explore some succ"See full answer
"YouTube Goal -> Give voice to everyone and show them the world,
Video -> Shorts( Dominated by Shorts, Reels, Tiktok
Mid(1-25 Min). -> Youtube
Medium Long(60-90 Mins) -> [Opportunity]
Long(150-180 Mins) -> OTT Platform, Movies
Youtube can assist content creators on Youtube to make high-quality Film Like Videos without any Production Setup. Assisting Content Creators to create Movies with"
Anonymous Muskox - "YouTube Goal -> Give voice to everyone and show them the world,
Video -> Shorts( Dominated by Shorts, Reels, Tiktok
Mid(1-25 Min). -> Youtube
Medium Long(60-90 Mins) -> [Opportunity]
Long(150-180 Mins) -> OTT Platform, Movies
Youtube can assist content creators on Youtube to make high-quality Film Like Videos without any Production Setup. Assisting Content Creators to create Movies with"See full answer
"I generally struggle with stakeholders and partners who doesn't communicate enough. Now it could be either they don't invest sufficient time and energy in doing so or at times they lack the skill sets to do so. In both the cases, the entire responsibility fell on the other person to dig deep into why someone is doing the way they are doing, reading into patterns and behaviour of their personality and adapting to those communication styles"
Lati K. - "I generally struggle with stakeholders and partners who doesn't communicate enough. Now it could be either they don't invest sufficient time and energy in doing so or at times they lack the skill sets to do so. In both the cases, the entire responsibility fell on the other person to dig deep into why someone is doing the way they are doing, reading into patterns and behaviour of their personality and adapting to those communication styles"See full answer
"Since there is a need for the data to be accurate and consistent without any latency to allocate a spot, can't the data be synchronously synced to replicas after every write as the number of writes are not many per min, instead of read lock phenomena
Let me know if i am on a wrong thought here."
Chitapuram N. - "Since there is a need for the data to be accurate and consistent without any latency to allocate a spot, can't the data be synchronously synced to replicas after every write as the number of writes are not many per min, instead of read lock phenomena
Let me know if i am on a wrong thought here."See full answer
"Design an alarm clock for blind people
Clarifying question:
Does it have to be a physical product or software? Your call
Do I need to think about the long-term implications of the product from a strategy perspective or a single product? single product
What are the metrics this company will focus on? Engagement
What industry are we in? (start-up, google/Amazon, etc) - Startup
What do we mean by blind? - ppl who cannot see anything, or people who still have sense of"
Manu G. - "Design an alarm clock for blind people
Clarifying question:
Does it have to be a physical product or software? Your call
Do I need to think about the long-term implications of the product from a strategy perspective or a single product? single product
What are the metrics this company will focus on? Engagement
What industry are we in? (start-up, google/Amazon, etc) - Startup
What do we mean by blind? - ppl who cannot see anything, or people who still have sense of"See full answer
"Clarifying questions: When we talk about a 'meditation app', are we mainly focusing on audio content? And are we thinking of this under a big brand or are we a fresh startup? Also, is our main target the US? And, are we designing mainly for individual use, or are we thinking about larger settings like schools?
Interviewer: It's a startup. We're aiming for individual users, mainly in the US, and yes, an audio-based format.
Summary till now: In today's digital age there's an increasi"
Ankit M. - "Clarifying questions: When we talk about a 'meditation app', are we mainly focusing on audio content? And are we thinking of this under a big brand or are we a fresh startup? Also, is our main target the US? And, are we designing mainly for individual use, or are we thinking about larger settings like schools?
Interviewer: It's a startup. We're aiming for individual users, mainly in the US, and yes, an audio-based format.
Summary till now: In today's digital age there's an increasi"See full answer
"Meta Pay - What is it?
Payment platform that lets people buy and send money on Facebook, IG and Instagram
on platforms like FB and IG, people already find things they like and the businesses can sell directly on the platform through shops so Pay is closing the last mile and letting them also check out quickly once they’ve added their card details once. It’s making it a real one-stop shop.
It also allows making more transactions directly on the platform without having to enter card deta"
Rotem L. - "Meta Pay - What is it?
Payment platform that lets people buy and send money on Facebook, IG and Instagram
on platforms like FB and IG, people already find things they like and the businesses can sell directly on the platform through shops so Pay is closing the last mile and letting them also check out quickly once they’ve added their card details once. It’s making it a real one-stop shop.
It also allows making more transactions directly on the platform without having to enter card deta"See full answer
"Situation:
While working at CVS Health, our inventory management system for OTCHS products was facing challenges. We had increasing stock outs, and our existing data was insufficient to fully understand and address the issue since it has been only a year this product line was initiated.
Action:
Although we do have a forecasting model to predict demand and other algorithms to trigger out of stock flags to warehouses to fill them, lack of data points on seasonality, supplier delays, compliance"
Vihari K. - "Situation:
While working at CVS Health, our inventory management system for OTCHS products was facing challenges. We had increasing stock outs, and our existing data was insufficient to fully understand and address the issue since it has been only a year this product line was initiated.
Action:
Although we do have a forecasting model to predict demand and other algorithms to trigger out of stock flags to warehouses to fill them, lack of data points on seasonality, supplier delays, compliance"See full answer
"I'd tell the interviewer that I'd start off with clarifying the question to make sure I understand it correctly (see 1 below). Then, I'd tell the interviewer my approach to make sure they know what to expect as I talk through. Approach would start with discussing the mission and connecting a north star metric (NSM) to the mission, then discuss key product metrics that are inputs towards NSM. If there's time at the end and if the interviewer wants to go down this path, we should also talk about t"
Michelle D. - "I'd tell the interviewer that I'd start off with clarifying the question to make sure I understand it correctly (see 1 below). Then, I'd tell the interviewer my approach to make sure they know what to expect as I talk through. Approach would start with discussing the mission and connecting a north star metric (NSM) to the mission, then discuss key product metrics that are inputs towards NSM. If there's time at the end and if the interviewer wants to go down this path, we should also talk about t"See full answer
"Functional Requirement
User should be able to add review the food item/order
User should be able to rate the food item delivered
User should be able to Like/Dislike others reviews
User should be able to see all reviews on a food item
Users should be able to receive rewards based on criteria- (Quality of the reviews- Based on number of likes - Monthly cash card)
OOS - Item is already ordered and exists in a separate system, User is authenticated. No Media
Non Functional requireme"
Anshika R. - "Functional Requirement
User should be able to add review the food item/order
User should be able to rate the food item delivered
User should be able to Like/Dislike others reviews
User should be able to see all reviews on a food item
Users should be able to receive rewards based on criteria- (Quality of the reviews- Based on number of likes - Monthly cash card)
OOS - Item is already ordered and exists in a separate system, User is authenticated. No Media
Non Functional requireme"See full answer
"after completing my project, I asked my manager for feedback on my performance. My aim was to identify areas for improvement, and learn more about new technologies which are in the"
Sugrim S. - "after completing my project, I asked my manager for feedback on my performance. My aim was to identify areas for improvement, and learn more about new technologies which are in the"See full answer