Interview Questions

Review this list of 4,217 interview questions and answers verified by hiring managers and candidates.
  • "Here is my first shot at it. Please excuse formatting. To find the maximum depth of the dependencies given a list of nodes, each having a unique string id and a list of subnodes it depends on, you can perform a depth-first search (DFS) to traverse the dependency graph. Here's how you can implement this: Represent the nodes and their dependencies using a dictionary. Perform a DFS on each node to find the maximum depth of the dependencies. Keep track of the maximum depth encountered dur"

    Tes d H. - "Here is my first shot at it. Please excuse formatting. To find the maximum depth of the dependencies given a list of nodes, each having a unique string id and a list of subnodes it depends on, you can perform a depth-first search (DFS) to traverse the dependency graph. Here's how you can implement this: Represent the nodes and their dependencies using a dictionary. Perform a DFS on each node to find the maximum depth of the dependencies. Keep track of the maximum depth encountered dur"See full answer

    Software Engineer
    Coding
    +1 more
  • Spotify logoAsked at Spotify 

    "You should identify this type of interview question as an Expansion problem, since we're expanding to a new market. This is similar to a growth problem, with a few additional components. This is the formula you should use when tackling these types of interview questions: Ask clarifying questions Perform user analysis Market risk analysis State goals Perform channel analysis Prioritize growth channels Strategy Summarize Without further"

    Exponent - "You should identify this type of interview question as an Expansion problem, since we're expanding to a new market. This is similar to a growth problem, with a few additional components. This is the formula you should use when tackling these types of interview questions: Ask clarifying questions Perform user analysis Market risk analysis State goals Perform channel analysis Prioritize growth channels Strategy Summarize Without further"See full answer

    Product Manager
    Product Strategy
  • Meta (Facebook) logoAsked at Meta (Facebook) 

    "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 The PM interview isn't about your ability to come up with the best solution right away — it's about bein"

    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 The PM interview isn't about your ability to come up with the best solution right away — it's about bein"See full answer

    Product Manager
    System Design
  • Product Manager
  • Product Manager
    Product Design
  • 🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.

  • Spotify logoAsked at Spotify 

    Balanced Tree

    IDE
    Medium
    +7

    "function visitChildren(node) { let leftSubtreeHeight = 0; let rightSubtreeHeight = 0; let isChildrenBalanced = true; if (node.left) { const { isBalanced, height } = visitChildren(node.left); isChildrenBalanced = isChildrenBalanced && isBalanced; leftSubtreeHeight += height + 1; } if (isChildrenBalanced && node.right) { const { isBalanced, height } = visitChildren(node.right); isChildrenBalanced = isChildrenBalanced && isBalan"

    Tiago R. - "function visitChildren(node) { let leftSubtreeHeight = 0; let rightSubtreeHeight = 0; let isChildrenBalanced = true; if (node.left) { const { isBalanced, height } = visitChildren(node.left); isChildrenBalanced = isChildrenBalanced && isBalanced; leftSubtreeHeight += height + 1; } if (isChildrenBalanced && node.right) { const { isBalanced, height } = visitChildren(node.right); isChildrenBalanced = isChildrenBalanced && isBalan"See full answer

    Software Engineer
    Data Structures & Algorithms
    +1 more
  • Amazon logoAsked at Amazon 

    "Started at 1.48 Clarifying question: Are we interested in a particular lens for this problem? Looking back in history to understand what significant changes did fast internet made in the world: -> Fast Internet - More consumption -> Fast Internet - More Adoption -> Fast Internet - Cheap Internet Let's try to see what kind of things will change in each of these categories. Let me look at it from a lens of an end user (internet consumer uses the internet for work and maintaining their socia"

    Anubhav A. - "Started at 1.48 Clarifying question: Are we interested in a particular lens for this problem? Looking back in history to understand what significant changes did fast internet made in the world: -> Fast Internet - More consumption -> Fast Internet - More Adoption -> Fast Internet - Cheap Internet Let's try to see what kind of things will change in each of these categories. Let me look at it from a lens of an end user (internet consumer uses the internet for work and maintaining their socia"See full answer

    Product Manager
    Product Strategy
    +1 more
  • "Introduce special tickets which will cover a bundle of rides. This will distribute the load over the remaining rides and reduce the queue for the particular ride as all the people will no longer try to avail the same ride simultaneously."

    Shuvam C. - "Introduce special tickets which will cover a bundle of rides. This will distribute the load over the remaining rides and reduce the queue for the particular ride as all the people will no longer try to avail the same ride simultaneously."See full answer

    Product Manager
    Analytical
    +1 more
  • "Submitted before deadline and described the creativity behind the new website"

    Promise S. - "Submitted before deadline and described the creativity behind the new website"See full answer

    Frontend Engineer
    Technical
    +1 more
  • Meta (Facebook) logoAsked at Meta (Facebook) 
    Product Manager
    Product Design
  • "Comprehend the Situation: What is the goal?The goal is to introduce an ACH payment method in the United States for Netflix. Why is this important?ACH payments can offer a convenient and cost-effective payment option for customers. Who are the stakeholders?Stakeholders include Netflix customers, the product team, finance, legal, and compliance teams. How does ACH work? transaction flow and potential benefits. Identify the Customer: Recurring subscribers and"

    Anonymous Goat - "Comprehend the Situation: What is the goal?The goal is to introduce an ACH payment method in the United States for Netflix. Why is this important?ACH payments can offer a convenient and cost-effective payment option for customers. Who are the stakeholders?Stakeholders include Netflix customers, the product team, finance, legal, and compliance teams. How does ACH work? transaction flow and potential benefits. Identify the Customer: Recurring subscribers and"See full answer

    Product Manager
    Execution
    +1 more
  • Atlassian logoAsked at Atlassian 

    "This is one of the core behavioral questions that you should expect to cover in any interview. In particular, it asks you to justify why you want to work at a specific company that you've applied for. There's no right answer for this, however we do recommend you list at least three distinct reasons. Here's an example of what you might say: > Great question! There's so many reasons, but I'll keep it to my top three.Atlassian has some of the most impactful products in the tech space to date, inclu"

    Exponent - "This is one of the core behavioral questions that you should expect to cover in any interview. In particular, it asks you to justify why you want to work at a specific company that you've applied for. There's no right answer for this, however we do recommend you list at least three distinct reasons. Here's an example of what you might say: > Great question! There's so many reasons, but I'll keep it to my top three.Atlassian has some of the most impactful products in the tech space to date, inclu"See full answer

    Product Manager
    Behavioral
  • +7

    "My solution is simple; it does an in-order DFS traversal to create an array of in-order elements then it searches through the array to find the node we want the successor of. finally we return the node that is 1 after the input node, in the case our input node is the last element of our DFS we know there is no successor, therefore it returns None/null. CODE INSTRUCTIONS: 1) The method fi"

    Rohan M. - "My solution is simple; it does an in-order DFS traversal to create an array of in-order elements then it searches through the array to find the node we want the successor of. finally we return the node that is 1 after the input node, in the case our input node is the last element of our DFS we know there is no successor, therefore it returns None/null. CODE INSTRUCTIONS: 1) The method fi"See full answer

    Data Structures & Algorithms
    Coding
  • "Clarification Question what does it mean by the different markets? Emerging market, developing market, or developed market. Technical Front Low bandwidth or network can affect the performance Latency can be high if the server is not placed near to the regions Business Front The average number of people who indulge in corporate or white collar jobs is very less. Jobs in the local market is very less People who don't have smartphone/desktop excess extensively may not be present on the"

    Anonymous Muskox - "Clarification Question what does it mean by the different markets? Emerging market, developing market, or developed market. Technical Front Low bandwidth or network can affect the performance Latency can be high if the server is not placed near to the regions Business Front The average number of people who indulge in corporate or white collar jobs is very less. Jobs in the local market is very less People who don't have smartphone/desktop excess extensively may not be present on the"See full answer

    Technical
    Analytical
  • DoorDash logoAsked at DoorDash 

    "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

    Machine Learning Engineer
    System Design
  • Flipkart logoAsked at Flipkart 

    " Describe the product -What does it do? Who uses it? How do they use it? Google maps provides an optimal route from point A to point B. It also shows different checkpoints like restaurants, petrol pumps, etc. on the way. It is used in two major ways majorly, before starting people check the traffic to decide when to leave or which route to take. When people don’t know the way so they put on Google map to guide them. It has 1Bn MAU and 152 mins of app time. Clarification questions Wha"

    Ekta M. - " Describe the product -What does it do? Who uses it? How do they use it? Google maps provides an optimal route from point A to point B. It also shows different checkpoints like restaurants, petrol pumps, etc. on the way. It is used in two major ways majorly, before starting people check the traffic to decide when to leave or which route to take. When people don’t know the way so they put on Google map to guide them. It has 1Bn MAU and 152 mins of app time. Clarification questions Wha"See full answer

    Product Manager
    Product Strategy
  • "Function signature for reference: def calculate(servers: List[int], k: int) -> int: ... To resolve this, you can use binary search considering left=0 and right=max(servers) * k so Example: servers=[1,4,5] First server handle 1 request in let's say 1 second, second 4 seconds and last 5 seconds. k=10 So I want to know the minimal time to process 10 requests Get the mid for timeline mid = (left+right)//2 -> mid is 25 Check how many we could process 25//1 = 25 25//4=6 25//5=5 so 25 + 6 +"

    Babaa - "Function signature for reference: def calculate(servers: List[int], k: int) -> int: ... To resolve this, you can use binary search considering left=0 and right=max(servers) * k so Example: servers=[1,4,5] First server handle 1 request in let's say 1 second, second 4 seconds and last 5 seconds. k=10 So I want to know the minimal time to process 10 requests Get the mid for timeline mid = (left+right)//2 -> mid is 25 Check how many we could process 25//1 = 25 25//4=6 25//5=5 so 25 + 6 +"See full answer

    Software Engineer
    Coding
Showing 2341-2360 of 4217