Skip to main content

Interview Questions

Review this list of 4,659 interview questions and answers verified by hiring managers and candidates.
  • 19 answers
    Video answer for 'How would you remove duplicates in a string?'
    +13

    " O(n) - characters in the string O(n) - stack def identify_adjacent(s: str, k: int) -> str: stack = [] n = len(s) for ch in s: if stack: topch, topcnt = stack[-1] if top_ch == ch: top_cnt += 1 stack[-1] = (ch, top_cnt) else: top_cnt = 1 stack.append((ch,1)) if top_cnt == k: stack.pop() else: stack.append"

    Rick E. - " O(n) - characters in the string O(n) - stack def identify_adjacent(s: str, k: int) -> str: stack = [] n = len(s) for ch in s: if stack: topch, topcnt = stack[-1] if top_ch == ch: top_cnt += 1 stack[-1] = (ch, top_cnt) else: top_cnt = 1 stack.append((ch,1)) if top_cnt == k: stack.pop() else: stack.append"See full answer

    Data Structures & Algorithms
    Coding
  • Amazon logoAsked at Amazon 
    8 answers
    +5

    "In order to earn team members trust you need to show - 1- You need to show them you trust them. Treat others the way you wanted to be treated. 2- Do what you say. Keep commitments. 3- Listen 4- Admit when you make mistakes 5- Consistently make good decisions "

    Ritu G. - "In order to earn team members trust you need to show - 1- You need to show them you trust them. Treat others the way you wanted to be treated. 2- Do what you say. Keep commitments. 3- Listen 4- Admit when you make mistakes 5- Consistently make good decisions "See full answer

    Product Manager
    Behavioral
    +1 more
  • +18

    "Assumptions This estimation will not take into consideration service fees, delivery fees, or tips we are specifically interested in consumer purchases of fruits and vegetables from local grocers (i.e. instacart, peapod, wholefoods/primenow, etc.) Fresh and frozen produce are in scope Equation NYC annual online produce purchases = (Num NYC households) x (% pop. that purchase produce online) x ($ spent on online produce purchases) (NYC HH) = 300M Americans --> 100M HH"

    Kwabena B. - "Assumptions This estimation will not take into consideration service fees, delivery fees, or tips we are specifically interested in consumer purchases of fruits and vegetables from local grocers (i.e. instacart, peapod, wholefoods/primenow, etc.) Fresh and frozen produce are in scope Equation NYC annual online produce purchases = (Num NYC households) x (% pop. that purchase produce online) x ($ spent on online produce purchases) (NYC HH) = 300M Americans --> 100M HH"See full answer

    Estimation
  • Meta logoAsked at Meta 
    2 answers
    Video answer for 'When you lacked resources, how did you deliver products?'

    "Question and video tagged not same. "

    Anjali P. - "Question and video tagged not same. "See full answer

    Product Manager
    Behavioral
  • Amazon logoAsked at Amazon 
    9 answers
    +6

    "Great question. As a Product Manager, it is common to have to have difficult conversations with clients, stakeholders, or co-workers. This question actually reminds me of a time that I was faced with having to tell a client that the original estimate we gave them was much lower than it should have been and would, therefore, take much longer and cost a lot more as well. In this scenario, we had to work within a client's legacy codebase and didn't realize the limitations, roadblocks, and barrie"

    Kiley S. - "Great question. As a Product Manager, it is common to have to have difficult conversations with clients, stakeholders, or co-workers. This question actually reminds me of a time that I was faced with having to tell a client that the original estimate we gave them was much lower than it should have been and would, therefore, take much longer and cost a lot more as well. In this scenario, we had to work within a client's legacy codebase and didn't realize the limitations, roadblocks, and barrie"See full answer

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

  • Stripe logoAsked at Stripe 
    10 answers
    Video answer for 'Design a Distributed LRU Cache'
    +7

    "One good reason for using the doubly linked list is that to remove an accessed item in the list from its existing position say in the middle of the list and move it to the head, you need to update the previous node's next pointer and the next node's previous pointer. A singly linked list only has next pointers, so removing from the middle would require traversing from the head to find the previous node which requires O(n) time. A doubly linked list allows O(1) removal from any position because w"

    Javed S. - "One good reason for using the doubly linked list is that to remove an accessed item in the list from its existing position say in the middle of the list and move it to the head, you need to update the previous node's next pointer and the next node's previous pointer. A singly linked list only has next pointers, so removing from the middle would require traversing from the head to find the previous node which requires O(n) time. A doubly linked list allows O(1) removal from any position because w"See full answer

    Engineering Manager
    System Design
    +1 more
  • Meta logoAsked at Meta 
    9 answers
    +5

    "The opening of people spending a lot time on Facebook is way too long. Almost half time of the video. The analysis of Facebook business model should be very brief. People know Facebook business model. Maximize the ads display while balancing the user experience is the key. She can drive to this point much faster. Segmentation of user group feels irrelevant to the question. I would answer the question in a different way. Ads revenue is the single most revenue stream for Facebook. So we c"

    Zhi C. - "The opening of people spending a lot time on Facebook is way too long. Almost half time of the video. The analysis of Facebook business model should be very brief. People know Facebook business model. Maximize the ads display while balancing the user experience is the key. She can drive to this point much faster. Segmentation of user group feels irrelevant to the question. I would answer the question in a different way. Ads revenue is the single most revenue stream for Facebook. So we c"See full answer

    Product Manager
    Estimation
    +1 more
  • Amazon logoAsked at Amazon 
    12 answers
    Video answer for 'How do you build credibility with new reports on a team you haven't built yourself?'
    +9

    "Credibility is very important for success of any team. And it is something that takes time to build, but if i am inheriting a team that i did not build, i would spend dedicated time to understand team structure, dynamics and skill levels for every team member. Domain knowledge and experience are other important factors i would learn about each team member. In regular meetings i would introduce the culture of openness and respect where team members feel free to bring in ideas and constructive fee"

    Kanwarpreet S. - "Credibility is very important for success of any team. And it is something that takes time to build, but if i am inheriting a team that i did not build, i would spend dedicated time to understand team structure, dynamics and skill levels for every team member. Domain knowledge and experience are other important factors i would learn about each team member. In regular meetings i would introduce the culture of openness and respect where team members feel free to bring in ideas and constructive fee"See full answer

    Engineering Manager
    Behavioral
  • Booking.com logoAsked at Booking.com 
    8 answers
    Video answer for 'Design a metrics and logging service.'
    +1

    "For somebody who needs accessibility accommodation, this doesn't have a transcript so it is not useful to me."

    Shivastuti K. - "For somebody who needs accessibility accommodation, this doesn't have a transcript so it is not useful to me."See full answer

    Software Engineer
    System Design
    +2 more
  • Amazon logoAsked at Amazon 
    13 answers
    Video answer for 'Design a rate limiter.'
    +9

    "Rate Limiter is to limit the number of request from a particular IP Address. Rate limiter will block the IP address to reduce the load on server. It should be highly available and handle concurrent requests. Blocked IP addresses should be kept in a pool which is present in shared cache. We need to keep threshold value after it reaches threshold value it should start blocking IP address. All these ip address to be kept in No SQL DB. Batch will run that will clear the cache and delete all the bloc"

    Ashish G. - "Rate Limiter is to limit the number of request from a particular IP Address. Rate limiter will block the IP address to reduce the load on server. It should be highly available and handle concurrent requests. Blocked IP addresses should be kept in a pool which is present in shared cache. We need to keep threshold value after it reaches threshold value it should start blocking IP address. All these ip address to be kept in No SQL DB. Batch will run that will clear the cache and delete all the bloc"See full answer

    Software Engineer
    System Design
    +1 more
  • Meta logoAsked at Meta 
    25 answers
    +22

    "Company Mission: Make video communication frictionless Product: Zoom is a telecommunications tool used by companies and individuals to interact with one another. It has a freemium business model i.e. it provides some basic features to its users for free and premium features for a subscription. Features: Video and audio interactions. Built-in collaboration features. End-to-end encryption for all meetings. Recording and transcripts. Streamlined calendaring. User Base: "

    R A. - "Company Mission: Make video communication frictionless Product: Zoom is a telecommunications tool used by companies and individuals to interact with one another. It has a freemium business model i.e. it provides some basic features to its users for free and premium features for a subscription. Features: Video and audio interactions. Built-in collaboration features. End-to-end encryption for all meetings. Recording and transcripts. Streamlined calendaring. User Base: "See full answer

    Product Manager
    Analytical
  • Google logoAsked at Google 
    14 answers
    +10

    "Designing a system to deny services to requests from banned IPs involves integrating real-time IP checking with your service architecture. Here’s a detailed outline of how you can design such a system: System Design Overview The goal is to ensure that your service can efficiently check incoming requests against a list of banned IPs and deny access when necessary. The system will leverage an external API, security.gov.x, to determine if an IP address is blocked or allowed. **Key Compone"

    Palak A. - "Designing a system to deny services to requests from banned IPs involves integrating real-time IP checking with your service architecture. Here’s a detailed outline of how you can design such a system: System Design Overview The goal is to ensure that your service can efficiently check incoming requests against a list of banned IPs and deny access when necessary. The system will leverage an external API, security.gov.x, to determine if an IP address is blocked or allowed. **Key Compone"See full answer

    Software Engineer
    System Design
    +2 more
  • Google logoAsked at Google 
    5 answers
    +2

    "5 reasons Gmail search is real time Gmail search needs to be 100% accurate Does not have significant caching / hot searches Less hardware used as user info cant be sprayed across machines Gmail storage is different, as needs decryption on every"

    Mohit G. - "5 reasons Gmail search is real time Gmail search needs to be 100% accurate Does not have significant caching / hot searches Less hardware used as user info cant be sprayed across machines Gmail storage is different, as needs decryption on every"See full answer

    Product Manager
    Technical
  • Lyft logoAsked at Lyft 
    23 answers
    Video answer for 'Rider cancellations have increased by 5%. Investigate what happened.'
    +19

    "What is rider cancellation? Is it a rider requesting a ride but hitting the cancel button after the driver is on their way? Yes. I can see why it's concerning since that affects our # of completed rides and driver earnings. Let's try to understand the root cause. Rider cancellations have increased in what time period? We noticed it last week. Was it slowly dropping for a while or did we notice it only last week? It was a sudden drop last week How did other metrics behave last week? For eg,"

    M N. - "What is rider cancellation? Is it a rider requesting a ride but hitting the cancel button after the driver is on their way? Yes. I can see why it's concerning since that affects our # of completed rides and driver earnings. Let's try to understand the root cause. Rider cancellations have increased in what time period? We noticed it last week. Was it slowly dropping for a while or did we notice it only last week? It was a sudden drop last week How did other metrics behave last week? For eg,"See full answer

    Analytical
    Execution
  • Amazon logoAsked at Amazon 
    58 answers
    Video answer for 'Merge Intervals'
    +50

    "const mergeIntervals = (intervals) => { const compare = (a, b) => { if(a[0] b[0]) return 1 else if(a[0] === b[0]) { return a[1] - b[1] } } let current = [] const result = [] const sorted = intervals.sort(compare) for(let i = 0; i = b[0]) current[1] = b[1] els"

    Kofi N. - "const mergeIntervals = (intervals) => { const compare = (a, b) => { if(a[0] b[0]) return 1 else if(a[0] === b[0]) { return a[1] - b[1] } } let current = [] const result = [] const sorted = intervals.sort(compare) for(let i = 0; i = b[0]) current[1] = b[1] els"See full answer

    Software Engineer
    Data Structures & Algorithms
    +6 more
  • Apple logoAsked at Apple 
    5 answers
    +2

    "To answer this, I will focus my efforts on explaining the most common type of API used in most modern software development applications - the REST API. For the purpose of simplicity, I will also keep the topics of Authorization and Authentication out of the mix. In essence, an API is a group of logic that takes in a specific set of inputs and responds with a specific set of outputs. This is analogous to going to a drive-thru and placing an order for a meal. When you give an API a bunch of"

    Pathworks P. - "To answer this, I will focus my efforts on explaining the most common type of API used in most modern software development applications - the REST API. For the purpose of simplicity, I will also keep the topics of Authorization and Authentication out of the mix. In essence, an API is a group of logic that takes in a specific set of inputs and responds with a specific set of outputs. This is analogous to going to a drive-thru and placing an order for a meal. When you give an API a bunch of"See full answer

    Software Engineer
    System Design
    +4 more
  • Microsoft logoAsked at Microsoft 
    11 answers
    +8

    "What metrics do you use to measure the success of a product? Clarifications & Assumptions What type of a Product is it? Is it an App? Assume it is an App. Are you launching the App now or is it an App that has already been in production for a while? Assume you are launching the App now. It is for a consumer (D2C or a B2B / Enterprise)? Assume it is for consumers / individual users to start with, and eventually will be adopted by Enterprises. Assume that your current target custo"

    Karthik M. - "What metrics do you use to measure the success of a product? Clarifications & Assumptions What type of a Product is it? Is it an App? Assume it is an App. Are you launching the App now or is it an App that has already been in production for a while? Assume you are launching the App now. It is for a consumer (D2C or a B2B / Enterprise)? Assume it is for consumers / individual users to start with, and eventually will be adopted by Enterprises. Assume that your current target custo"See full answer

    Product Manager
    Analytical
  • Meta logoAsked at Meta 
    3 answers
    Video answer for 'Design Facebook Newsfeed.'

    "How might the system design change if it is limited specifically to a web/mobile use case?"

    San S. - "How might the system design change if it is limited specifically to a web/mobile use case?"See full answer

    Product Design
    System Design
  • Adobe logoAsked at Adobe 
    16 answers
    Video answer for 'Given an integer array nums and an integer k, return true if nums has a subarray of at least two elements whose sum is a multiple of k.'
    +12

    " def hasgoodsubarray(nums, k): if not nums: return False if k == 0: for i in range(len(nums)): if nums[i] == 0 and nums[i + 1] == 0: return True return False map = {0:-1} sum = 0 for i,val in enumerate(nums): sum += val rem = sum % k if rem in map: if i - map[rem] >= 2: return True else: map[rem] = i return False print(hasgoods"

    Abinash S. - " def hasgoodsubarray(nums, k): if not nums: return False if k == 0: for i in range(len(nums)): if nums[i] == 0 and nums[i + 1] == 0: return True return False map = {0:-1} sum = 0 for i,val in enumerate(nums): sum += val rem = sum % k if rem in map: if i - map[rem] >= 2: return True else: map[rem] = i return False print(hasgoods"See full answer

    Software Engineer
    Data Structures & Algorithms
    +4 more
  • Airbnb logoAsked at Airbnb 
    3 answers

    "I most want to communicate a few principals of conflict resolution that I believe were integral in this situation, which are mutual respect, a results orientation, an unwavering focus on the user. To that end, here’s how I’d like to structure this answer: First, I’ll tell you about the project we were working on, to provide some background for you. Second, I’ll describe the disagreement. Third, I’ll describe how we arrived at a solution, and finally, I’ll discuss how those 3 conflict resolution"

    Ross B. - "I most want to communicate a few principals of conflict resolution that I believe were integral in this situation, which are mutual respect, a results orientation, an unwavering focus on the user. To that end, here’s how I’d like to structure this answer: First, I’ll tell you about the project we were working on, to provide some background for you. Second, I’ll describe the disagreement. Third, I’ll describe how we arrived at a solution, and finally, I’ll discuss how those 3 conflict resolution"See full answer

    Product Manager
    Behavioral
    +2 more
Showing 181-200 of 4659
Exponent

Get updates in your inbox with the latest tips, job listings, and more.

Follow Us

Products
Courses
Interview Questions
Interview Experiences
Popular articles
Guides
Coaching
For Partners
Company
Exponent © 2026
Terms of Service | Privacy