Skip to main content

Interview Questions

Review this list of 348 interview questions and answers verified by hiring managers and candidates.
  • Adobe logoAsked at Adobe 
    Add answer
    Video answer for 'Find the median of two sorted arrays.'
    Software Engineer
    Data Structures & Algorithms
    +4 more
  • Adobe logoAsked at Adobe 
    18 answers
    Video answer for 'Given an nxn grid of 1s and 0s, return the number of islands in the input.'
    +15

    " from typing import List def getnumberof_islands(binaryMatrix: List[List[int]]) -> int: if not binaryMatrix: return 0 rows = len(binaryMatrix) cols = len(binaryMatrix[0]) islands = 0 for r in range(rows): for c in range(cols): if binaryMatrixr == 1: islands += 1 dfs(binaryMatrix, r, c) return islands def dfs(grid, r, c): if ( r = len(grid) "

    Rick E. - " from typing import List def getnumberof_islands(binaryMatrix: List[List[int]]) -> int: if not binaryMatrix: return 0 rows = len(binaryMatrix) cols = len(binaryMatrix[0]) islands = 0 for r in range(rows): for c in range(cols): if binaryMatrixr == 1: islands += 1 dfs(binaryMatrix, r, c) return islands def dfs(grid, r, c): if ( r = len(grid) "See full answer

    Software Engineer
    Data Structures & Algorithms
    +4 more
  • Amazon logoAsked at Amazon 
    23 answers
    Video answer for 'Design a URL shortener.'
    +20

    "I studied Exponent's TinyURL system design video. My interviewer was asking many detailed questions on API design, schema, as well as data required to store. I found system design questions are bit high level instead of depth. I think should have detail design of API, schema and some additional flavors."

    Yag S. - "I studied Exponent's TinyURL system design video. My interviewer was asking many detailed questions on API design, schema, as well as data required to store. I found system design questions are bit high level instead of depth. I think should have detail design of API, schema and some additional flavors."See full answer

    Engineering Manager
    System Design
    +1 more
  • Twitter logoAsked at Twitter 
    Add answer
    Video answer for 'Design Twitter's API.'
    System Design
    Technical
  • Google logoAsked at Google 
    3 answers
    Video answer for 'How would you respond if a developer disagrees with your UX recommendations?'

    "Adding to what Zoe already mentioned: running a user study with existing customers to understand if they see the proposed design as favorable running AB testing with users to compare two different designs and decide which one is more favorable (based on a previously determined metrics)"

    Vlada J. - "Adding to what Zoe already mentioned: running a user study with existing customers to understand if they see the proposed design as favorable running AB testing with users to compare two different designs and decide which one is more favorable (based on a previously determined metrics)"See full answer

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

  • Adobe logoAsked at Adobe 
    23 answers
    Video answer for 'Find a triplet in an array with a given sum.'
    +17

    "from typing import List def three_sum(nums: List[int]) -> List[List[int]]: nums.sort() triplets = set() for i in range(len(nums) - 2): firstNum = nums[i] l = i + 1 r = len(nums) - 1 while l 0: r -= 1 elif potentialSum < 0: l += 1 "

    Anonymous Roadrunner - "from typing import List def three_sum(nums: List[int]) -> List[List[int]]: nums.sort() triplets = set() for i in range(len(nums) - 2): firstNum = nums[i] l = i + 1 r = len(nums) - 1 while l 0: r -= 1 elif potentialSum < 0: l += 1 "See full answer

    Software Engineer
    Data Structures & Algorithms
    +3 more
  • 1 answer
    Video answer for 'Design a data warehouse schema for Instagram.'
    Data Engineer
    Data Modeling
  • PayPal logoAsked at PayPal 
    1 answer
    Video answer for 'There's a YoY slowdown in transactions. How would you structure your analysis?'

    "To analyze a year-over-year (YoY) slowdown in transactions, you should start by understanding the context, segmenting data, identifying potential drivers, and then formulating actionable recommendations. This involves a structured approach that includes a thorough examination of the data, both internally and externally. Understand the Context: Define "transactions": What specific transactions are being analyzed (e.g., website purchases, in-store purchases, total transactions)? Timeframe: Sp"

    Ankit kumar S. - "To analyze a year-over-year (YoY) slowdown in transactions, you should start by understanding the context, segmenting data, identifying potential drivers, and then formulating actionable recommendations. This involves a structured approach that includes a thorough examination of the data, both internally and externally. Understand the Context: Define "transactions": What specific transactions are being analyzed (e.g., website purchases, in-store purchases, total transactions)? Timeframe: Sp"See full answer

    Business Analyst
    Data Analysis
    +2 more
  • Salesforce logoAsked at Salesforce 
    2 answers
    Video answer for 'How do you handle a customer who asks why your product is so expensive?'

    "I dont know is good and you should use however than but."

    Satesh A. - "I dont know is good and you should use however than but."See full answer

    Sales Representative
    Behavioral
    +2 more
  • Meta logoAsked at Meta 
    Add answer
    Video answer for 'How would you diagnose a connection issue with Instagram?'
    Technical
  • Microsoft logoAsked at Microsoft 
    5 answers
    Video answer for 'How do you select the value of 'k' in the k-means algorithm?'
    +2

    "As an interviewer, I have asked this question to candidates in the past. Here are the major topics I am looking for in an interview The candidate should understand that there are ways of measuring the loss of a particular clustering. For example, we can take the average distance of each point to it's cluster center. The candidate should understand that this loss will always decrease as the number of clusters increases. For that reason, we can't just pick the value of K that minimizes the l"

    Michael F. - "As an interviewer, I have asked this question to candidates in the past. Here are the major topics I am looking for in an interview The candidate should understand that there are ways of measuring the loss of a particular clustering. For example, we can take the average distance of each point to it's cluster center. The candidate should understand that this loss will always decrease as the number of clusters increases. For that reason, we can't just pick the value of K that minimizes the l"See full answer

    Machine Learning Engineer
    Concept
    +1 more
  • "I would always pick a specific product and make a case. Answering this question without a specific product in mind makes the answer unstructured in my opinion. For instance, I would pick Gmail as an example to answer this and structure my response. Clarifications & Assumptions Let us pick a specific product and structure our response - for instance - let us pick Gmail as the product that you want to analyse and make a Go / No Recommendation to Sunset the Product. Overall Google Revenu"

    Karthik M. - "I would always pick a specific product and make a case. Answering this question without a specific product in mind makes the answer unstructured in my opinion. For instance, I would pick Gmail as an example to answer this and structure my response. Clarifications & Assumptions Let us pick a specific product and structure our response - for instance - let us pick Gmail as the product that you want to analyse and make a Go / No Recommendation to Sunset the Product. Overall Google Revenu"See full answer

    Product Manager
    Analytical
    +2 more
  • Microsoft logoAsked at Microsoft 
    2 answers
    Video answer for 'How would you use VR to improve education?'

    "I got to play with a VR for the first time a few weeks ago at my friend’s house and I loved it, so this is a really fun question. Clarifying Questions Is this something we are looking to create Microsoft or are we a startup company etc? > Education can refer to elementary, high school, university, or even self-learning (e.g. Udemy). Is there a specific area we want to focus on? << What do y"

    Rohan S. - "I got to play with a VR for the first time a few weeks ago at my friend’s house and I loved it, so this is a really fun question. Clarifying Questions Is this something we are looking to create Microsoft or are we a startup company etc? > Education can refer to elementary, high school, university, or even self-learning (e.g. Udemy). Is there a specific area we want to focus on? << What do y"See full answer

    Concept
    Product Design
  • Amazon logoAsked at Amazon 
    11 answers
    Video answer for 'Design Prime Video.'
    +8

    "Amazon Prime will generally have a limited group of uploaders rather than a million of them. This should influence the design of the Uploader service as it doesn't need to scale that much. Also the Encoding service role was not too clear"

    Nilanjan D. - "Amazon Prime will generally have a limited group of uploaders rather than a million of them. This should influence the design of the Uploader service as it doesn't need to scale that much. Also the Encoding service role was not too clear"See full answer

    System Design
  • Meta logoAsked at Meta 
    2 answers
    Video answer for 'How do you recruit and hire good engineers?'

    "For me the answer looks very broad and general. It would be good the reply is relevant and focus good examples using STAR format. Please let me know your views."

    BePostive - "For me the answer looks very broad and general. It would be good the reply is relevant and focus good examples using STAR format. Please let me know your views."See full answer

    Behavioral
  • 4 answers
    Video answer for 'Implement K-Means Clustering '
    +1

    "import numpy as np class Centroid: def init(self, location, vectors): self.location = location # (D,) self.vectors = vectors # (N_i, D) class KMeans: def init(self, n_features, k): self.nfeatures = nfeatures self.centroids = [ Centroid( location=np.random.randn(n_features), vectors=np.empty((0, n_features)) ) for _ in range(k) ] def distance(self, x,"

    Dinesh G. - "import numpy as np class Centroid: def init(self, location, vectors): self.location = location # (D,) self.vectors = vectors # (N_i, D) class KMeans: def init(self, n_features, k): self.nfeatures = nfeatures self.centroids = [ Centroid( location=np.random.randn(n_features), vectors=np.empty((0, n_features)) ) for _ in range(k) ] def distance(self, x,"See full answer

    Coding
    Machine Learning
  • Add answer
    Video answer for 'Design a System to Predict Netflix Watch Times'
    Machine Learning
    System Design
  • LinkedIn logoAsked at LinkedIn 
    18 answers
    Video answer for 'Design a product that encourages voting.'
    +13

    "Would like to ask some clarifying questions: Is it a digital product? Yes? Application or website? Geography we are targeting? Assuming it is an app. Are we a new company or startup? Do we have any tie ups with other companies to reach a wider audience? Assuming I am the product manager of this application – goal of the application is to encourage voting more questions: Are we in the election year? Nearing the voting phase? If yes, then it will be easier for us to get users fo"

    Prerak B. - "Would like to ask some clarifying questions: Is it a digital product? Yes? Application or website? Geography we are targeting? Assuming it is an app. Are we a new company or startup? Do we have any tie ups with other companies to reach a wider audience? Assuming I am the product manager of this application – goal of the application is to encourage voting more questions: Are we in the election year? Nearing the voting phase? If yes, then it will be easier for us to get users fo"See full answer

    Product Design
  • Google logoAsked at Google 
    4 answers
    Video answer for 'Design a website for creating GIFs.'
    +1

    "Clarifying Qs: Design meaning - UI elements, front end requests and backend system architecture GIFs = standard short animated videos of 1/2 seconds built either using images or videos Make GIFs = generate gifs from images and videos Do we want to build the system for a certain volume of requests? Do you want me to consider the scalability part? I: Assumptions 1,2 & 3 are correct, ignore 3 for now Users: User b/w age 18-45 trying to generate GIFs using images(at least 3)"

    Shwetang S. - "Clarifying Qs: Design meaning - UI elements, front end requests and backend system architecture GIFs = standard short animated videos of 1/2 seconds built either using images or videos Make GIFs = generate gifs from images and videos Do we want to build the system for a certain volume of requests? Do you want me to consider the scalability part? I: Assumptions 1,2 & 3 are correct, ignore 3 for now Users: User b/w age 18-45 trying to generate GIFs using images(at least 3)"See full answer

    Product Design
  • Meta logoAsked at Meta 
    Add answer
    Video answer for 'Design a vending machine.'
    Engineering Manager
    Product Design
    +1 more
Showing 201-220 of 348
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