Interview Questions

Review this list of 4,392 interview questions and answers verified by hiring managers and candidates.
  • Adobe logoAsked at Adobe 
    Video answer for 'Find a triplet in an array with a given sum.'
    +13

    " Time O(n^2) Space O(1) from typing import List def three_sum(nums: List[int]) -> List[List[int]]: pass # your code goes here res = [] n = len(nums) nums.sort() for i in range(n-2): if i > 0 and nums[i] == nums[i - 1]: continue l,r = i + 1, n - 1 while l 0: r -= 1 "

    Rick E. - " Time O(n^2) Space O(1) from typing import List def three_sum(nums: List[int]) -> List[List[int]]: pass # your code goes here res = [] n = len(nums) nums.sort() for i in range(n-2): if i > 0 and nums[i] == nums[i - 1]: continue l,r = i + 1, n - 1 while l 0: r -= 1 "See full answer

    Software Engineer
    Data Structures & Algorithms
    +3 more
  • +8

    "Assumptions Assume that the functionality of Meta Pay is the ability to send and receive payments to other Meta account holders. Payment infrastructure connects to bank accounts Assume users can maintain a balance in Meta Pay Assume life cycle of the product is post launch adoption phase Clarifying questions Can I send or receive payments to a meta user from a different platform? e.g., fb to IG > assume the answers is “yes” Where is it available? > Assume answer is “US” "

    Philip C. - "Assumptions Assume that the functionality of Meta Pay is the ability to send and receive payments to other Meta account holders. Payment infrastructure connects to bank accounts Assume users can maintain a balance in Meta Pay Assume life cycle of the product is post launch adoption phase Clarifying questions Can I send or receive payments to a meta user from a different platform? e.g., fb to IG > assume the answers is “yes” Where is it available? > Assume answer is “US” "See full answer

    Product Manager
    Product Strategy
  • Amazon logoAsked at Amazon 

    "I told a story about how our team was focussed on moving a key metric i.e. NPS and to do that we build 3 top requested user feature. Post release the detractors % didn't move even though the detractors request for features shipped went down. Then I connect with users and did some analysis post which we realised that we need to pivot our focus from shipping features to enabling complete workflows for our users i.e. shipping all those feature which are used together in a feature as then only users"

    Aditya S. - "I told a story about how our team was focussed on moving a key metric i.e. NPS and to do that we build 3 top requested user feature. Post release the detractors % didn't move even though the detractors request for features shipped went down. Then I connect with users and did some analysis post which we realised that we need to pivot our focus from shipping features to enabling complete workflows for our users i.e. shipping all those feature which are used together in a feature as then only users"See full answer

    Product Manager
    Behavioral
    +1 more
  • Meta (Facebook) logoAsked at Meta (Facebook) 
    Video answer for 'How would you build an audio product for Facebook?'
    +16

    "The pain points articulated (no contextual recs, isolating experience, etc.) are pain points in the broader audio listening industry - there's no existing audio product at Meta already and assuming this is a net new product, wouldn't it have made more sense to have pain points specific to Meta? E.g. "there's no sense of real-time community in FB Groups" or "the barrier to engage in FB groups feels high" It almost feels like she just regurgitated things she's learned from her time working on Alex"

    Michael N. - "The pain points articulated (no contextual recs, isolating experience, etc.) are pain points in the broader audio listening industry - there's no existing audio product at Meta already and assuming this is a net new product, wouldn't it have made more sense to have pain points specific to Meta? E.g. "there's no sense of real-time community in FB Groups" or "the barrier to engage in FB groups feels high" It almost feels like she just regurgitated things she's learned from her time working on Alex"See full answer

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

  • Adobe logoAsked at Adobe 
    Video answer for 'Given stock prices for the next n days, how can you maximize your profit by buying or selling one share per day?'
    +13

    "public static int maxProfitGreedy(int[] stockPrices) { int maxProfit = 0; for(int i = 1; i todayPrice) { maxProfit += tomorrowPrice - todayPrice; } } return maxProfit; } "

    Laksitha R. - "public static int maxProfitGreedy(int[] stockPrices) { int maxProfit = 0; for(int i = 1; i todayPrice) { maxProfit += tomorrowPrice - todayPrice; } } return maxProfit; } "See full answer

    Software Engineer
    Data Structures & Algorithms
    +4 more
  • +5

    "Clarifying questions: US-based? And All year including holidays? First, what is the goal? Grow user base of Prime? Add revenue? I'd imagine it's to grow Prime base, as it's sticky and I imagine the Lifetime Value is higher as people will shop more if they have Prime. Then, I would look at the users. What are they trying to do? They're purchasing gifts, and looking to gift wrap. Take a look at the number of gift purchases total with gift receipt and no gift wrap. Call this X. Break thi"

    Manish E. - "Clarifying questions: US-based? And All year including holidays? First, what is the goal? Grow user base of Prime? Add revenue? I'd imagine it's to grow Prime base, as it's sticky and I imagine the Lifetime Value is higher as people will shop more if they have Prime. Then, I would look at the users. What are they trying to do? They're purchasing gifts, and looking to gift wrap. Take a look at the number of gift purchases total with gift receipt and no gift wrap. Call this X. Break thi"See full answer

    Analytical
    Product Strategy
  • +3

    "Trying to decide on if they should include a step to upload a profile picture in the onboarding flow or not? Why does facebook have a profile picture? What value does it add? User value - Connections: having a picture on your profile, help drive friending and follows. Because users can put a face with the name. And they cna also recongize people they may not immediately know from a name (or a common name) and want to friend them. Business value - Integrity: maki"

    Marie E. - "Trying to decide on if they should include a step to upload a profile picture in the onboarding flow or not? Why does facebook have a profile picture? What value does it add? User value - Connections: having a picture on your profile, help drive friending and follows. Because users can put a face with the name. And they cna also recongize people they may not immediately know from a name (or a common name) and want to friend them. Business value - Integrity: maki"See full answer

    Analytical
    Execution
  • Amazon logoAsked at Amazon 

    "The below system design addresses the requirements for a scalable distributed onboarding service, focusing on robust data validation, asynchronous processing, real-time aggregation, and efficient querying of metadata. Core Principles: Asynchronous Processing: Decouple components to ensure high throughput and responsiveness. Scalability & Elasticity: Utilize technologies that can scale horizontally to handle varying loads. Data Durability & Integrity: Ensure no data l"

    Anonymous Mongoose - "The below system design addresses the requirements for a scalable distributed onboarding service, focusing on robust data validation, asynchronous processing, real-time aggregation, and efficient querying of metadata. Core Principles: Asynchronous Processing: Decouple components to ensure high throughput and responsiveness. Scalability & Elasticity: Utilize technologies that can scale horizontally to handle varying loads. Data Durability & Integrity: Ensure no data l"See full answer

    Software Engineer
    System Design
  • Google logoAsked at Google 
    +7

    "Great. I will start by understanding the goal of Google Photos and how it aligns with the goal and mission of Google. After defining goals, I will talk about the user actions which will contribute towards this goal. Based on these actions, we will define metrics. Check-in with the interviewer on the approach here. Assuming that this looks good for the interviewer to proceed. Google Photo - Helping users organise & manage their pictures. Completely in line with Google's mission. Thinking ab"

    Harshit G. - "Great. I will start by understanding the goal of Google Photos and how it aligns with the goal and mission of Google. After defining goals, I will talk about the user actions which will contribute towards this goal. Based on these actions, we will define metrics. Check-in with the interviewer on the approach here. Assuming that this looks good for the interviewer to proceed. Google Photo - Helping users organise & manage their pictures. Completely in line with Google's mission. Thinking ab"See full answer

    Product Manager
    Analytical
    +1 more
  • Meta (Facebook) logoAsked at Meta (Facebook) 
    Video answer for 'Design a fake news detection system.'

    " Functional Requirements Content Ingestion\: Ingest news articles from various sources (websites, social media, etc.). Handle different types of content (text, images, videos). Content Analysis\: Extract and preprocess text from articles. Analyze the content for potential indicators of fake news. Model Training and Prediction\: Use machine learning models to classify content as fake or real. Continuously improve models with new data and f"

    Scott S. - " Functional Requirements Content Ingestion\: Ingest news articles from various sources (websites, social media, etc.). Handle different types of content (text, images, videos). Content Analysis\: Extract and preprocess text from articles. Analyze the content for potential indicators of fake news. Model Training and Prediction\: Use machine learning models to classify content as fake or real. Continuously improve models with new data and f"See full answer

    Technical Program Manager
    Machine Learning
    +3 more
  • +3

    "My Favorite Product is Grammarly unlike Microsoft spell checker, it helps correct the mistakes as I compose my sentences. It follows rules, patterns, machine learning, deep learning, and natural language processing (NLP) to improve users’ writing skills and improve their confidence in writing skills. I would evaluate this product by the following design principles. Usefulness Understandability Innovative It’s honest I can expand this criterion and explain how I evaluate prod"

    Dev S. - "My Favorite Product is Grammarly unlike Microsoft spell checker, it helps correct the mistakes as I compose my sentences. It follows rules, patterns, machine learning, deep learning, and natural language processing (NLP) to improve users’ writing skills and improve their confidence in writing skills. I would evaluate this product by the following design principles. Usefulness Understandability Innovative It’s honest I can expand this criterion and explain how I evaluate prod"See full answer

    Product Manager
    Behavioral
  • "I believe human emotions can't be judged by number and hence I have always made mistakes while judging the outcome of a reaction by data."

    Mc L. - "I believe human emotions can't be judged by number and hence I have always made mistakes while judging the outcome of a reaction by data."See full answer

    Behavioral
  • +1

    "Before I jump in, will this product be part of the FB ecosystem? If it's up to me, although I think wine has a great social element and is shared when people are connecting...I would hesitate to create a product that promotes alcohol consumption on FB. So I would choose to have it live outside of FB. With that, let me start by making sure I understand the product correctly, talk about some metrics we can target. Then we can think through who our users are and outline some of their needs. Final"

    Anonymous Sparrow - "Before I jump in, will this product be part of the FB ecosystem? If it's up to me, although I think wine has a great social element and is shared when people are connecting...I would hesitate to create a product that promotes alcohol consumption on FB. So I would choose to have it live outside of FB. With that, let me start by making sure I understand the product correctly, talk about some metrics we can target. Then we can think through who our users are and outline some of their needs. Final"See full answer

    Product Design
  • DoorDash logoAsked at DoorDash 

    "Shopping funnel and engagement: Global search brings up food items from multiple restaurants but results don't directly lead users to the item in the restaurant. Retention and repeat: Users are not able to earn and burn store-specific rewards. Similarly stores/restaurants can't build direct relationship w/ the customers and provide custom offers Multi-store cart and checkout. Currently DD supports cart and checkout from a single restaurant at a time. Many times customers want to order f"

    Kinjal S. - "Shopping funnel and engagement: Global search brings up food items from multiple restaurants but results don't directly lead users to the item in the restaurant. Retention and repeat: Users are not able to earn and burn store-specific rewards. Similarly stores/restaurants can't build direct relationship w/ the customers and provide custom offers Multi-store cart and checkout. Currently DD supports cart and checkout from a single restaurant at a time. Many times customers want to order f"See full answer

    Behavioral
    Product Design
  • Product Design
  • +4

    "To answer why Spotify introduced Podcasts, I would like to use 3C framework- Customer, Competitors and Company. Customers We have seen Spotify has a high WAU. This means users are engaged to the platform for music. Listeners need some new trend to listen to while going to the gym for example, or being stuck in a traffic. Sense of listening to something productive is what users need these days. Podcasts are lesser commitment than audiobooks because of short episode length"

    Simran M. - "To answer why Spotify introduced Podcasts, I would like to use 3C framework- Customer, Competitors and Company. Customers We have seen Spotify has a high WAU. This means users are engaged to the platform for music. Listeners need some new trend to listen to while going to the gym for example, or being stuck in a traffic. Sense of listening to something productive is what users need these days. Podcasts are lesser commitment than audiobooks because of short episode length"See full answer

    Product Manager
    Analytical
    +1 more
  • +5

    "Clarifying Questions - Who are we referring to "friends" and "non-friends"? (My assumption is people who we follow and they follow us back are our FRIENDS and people who we just follow, recommendations by Facebook and all other content falls under NON-FRIENDS category, is it right?) Are we doing it putting a certain success metric in our mind? (Assuming none, just to make people's lives easy) Let's use a combination of GAME & 4W1H Framework here to evaluate this question **G"

    Pankhuri T. - "Clarifying Questions - Who are we referring to "friends" and "non-friends"? (My assumption is people who we follow and they follow us back are our FRIENDS and people who we just follow, recommendations by Facebook and all other content falls under NON-FRIENDS category, is it right?) Are we doing it putting a certain success metric in our mind? (Assuming none, just to make people's lives easy) Let's use a combination of GAME & 4W1H Framework here to evaluate this question **G"See full answer

    Product Manager
    Analytical
    +2 more
  • +3

    "I would understand the real cause of it. Is it really a time issue or motivation issue or skill issue. If we know the actual root cause, we can better deal with it accordingly. If it is a time issue, I would understand the work done by the team and related impact. Influence them to work on high impact work. If their work is also equally important, I would offer help from my team to heavy lift and they can just guide my team. I would partner with respective team owner to get more resources for f"

    Deepak S. - "I would understand the real cause of it. Is it really a time issue or motivation issue or skill issue. If we know the actual root cause, we can better deal with it accordingly. If it is a time issue, I would understand the work done by the team and related impact. Influence them to work on high impact work. If their work is also equally important, I would offer help from my team to heavy lift and they can just guide my team. I would partner with respective team owner to get more resources for f"See full answer

    Behavioral
    Program Sense
  • Amazon logoAsked at Amazon 

    "Explained in STAR format one of the project situation where I had originally approved problem with different design which was correct approach that time. But as the project progressed that approach needed revision. Emphasized on facts why original approach was taken with points. Also focused tail end of discussion on learnings out of situation and how you end up deploying better solution from that learning."

    Vijay P. - "Explained in STAR format one of the project situation where I had originally approved problem with different design which was correct approach that time. But as the project progressed that approach needed revision. Emphasized on facts why original approach was taken with points. Also focused tail end of discussion on learnings out of situation and how you end up deploying better solution from that learning."See full answer

    Technical Program Manager
    Behavioral
Showing 361-380 of 4392