Interview Questions

Review this list of 4,138 interview questions and answers verified by hiring managers and candidates.
  • Software Engineer
    Data Structures & Algorithms
    +4 more
  • Apple logoAsked at Apple 

    "We have a list of documents. We want to build an index that maps keywords to documents containing them. Then, given a query keyword, we can efficiently retrieve all matching documents. docs = [ "Python is great for data science", "C++ is a powerful language", "Python supports OOP and functional programming", "Weather today is sunny", "Weather forecast shows rain" ]"

    Mridul J. - "We have a list of documents. We want to build an index that maps keywords to documents containing them. Then, given a query keyword, we can efficiently retrieve all matching documents. docs = [ "Python is great for data science", "C++ is a powerful language", "Python supports OOP and functional programming", "Weather today is sunny", "Weather forecast shows rain" ]"See full answer

    Machine Learning Engineer
    Coding
    +1 more
  • "Fitness app - for kids waze - for turists whats app for senior citizens "

    Mala R. - "Fitness app - for kids waze - for turists whats app for senior citizens "See full answer

    Product Design
  • Product Manager
  • "First I want to look at how Facebook stories overlaps with Facebook’s mission. I can see pretty instantly that stories stays true to Facebook’s mission with bringing the world together and connecting friends and families. I want to make sure I understand the product journey. Facebook stories allows users to post videos and photos. While also being able to add filters, music, and stickers. Users are also able to comment on other stories and react to them. Does that sound correct? Interview: Ye"

    Ben L. - "First I want to look at how Facebook stories overlaps with Facebook’s mission. I can see pretty instantly that stories stays true to Facebook’s mission with bringing the world together and connecting friends and families. I want to make sure I understand the product journey. Facebook stories allows users to post videos and photos. While also being able to add filters, music, and stickers. Users are also able to comment on other stories and react to them. Does that sound correct? Interview: Ye"See full answer

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

  • "tried my best"

    Megha S. - "tried my best"See full answer

    BizOps & Strategy
    Product Strategy
  • +2

    "Imagine you're playing with a big box of colorful building blocks. You know how sometimes you want to build a tall tower, and other times you want to make a cool car or a cozy house? Well, a product manager is like the person who helps decide what kind of things we should build with those blocks. They talk to all your friends and ask, "Hey, what would be the most fun to make with these blocks?" Then they tell the builders what to do, like which blocks to use and how to put them together. And g"

    Jonah S. - "Imagine you're playing with a big box of colorful building blocks. You know how sometimes you want to build a tall tower, and other times you want to make a cool car or a cozy house? Well, a product manager is like the person who helps decide what kind of things we should build with those blocks. They talk to all your friends and ask, "Hey, what would be the most fun to make with these blocks?" Then they tell the builders what to do, like which blocks to use and how to put them together. And g"See full answer

    Product Manager
    Behavioral
  • Adobe logoAsked at Adobe 
    Video answer for 'Given an nxn grid of 1s and 0s, return the number of islands in the input.'
    +10

    " 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
  • Adobe logoAsked at Adobe 
    Video answer for 'Given the root of a binary tree of integers, return the maximum path sum.'

    "\# Definition for a binary tree node. class TreeNode: def init(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def maxPathSum(self, root: TreeNode) -> int: self.max_sum = float('-inf')"

    Jerry O. - "\# Definition for a binary tree node. class TreeNode: def init(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def maxPathSum(self, root: TreeNode) -> int: self.max_sum = float('-inf')"See full answer

    Software Engineer
    Data Structures & Algorithms
    +4 more
  • Goldman Sachs logoAsked at Goldman Sachs 

    "Microservices for resolving diffs, storage S3 for keeping files"

    Anonymous Jellyfish - "Microservices for resolving diffs, storage S3 for keeping files"See full answer

    Software Engineer
    System Design
  • Amazon logoAsked at Amazon 
    +8

    "Questions to ask : Are there negative values in the input array? Interview : YES Will the product of two number fit into 32-bit Integer. If not, will it fit 64-bit Integer. If not, then is it safe to use Big Integer? Interview : let's worry only about 32 bit Integer What should we return if the input array is null or size (size of input array) is less than 2? Return 0 From above Information: General approach is as follows : a) Track smallest 2 elements in the array -> p"

    Rajendra D. - "Questions to ask : Are there negative values in the input array? Interview : YES Will the product of two number fit into 32-bit Integer. If not, will it fit 64-bit Integer. If not, then is it safe to use Big Integer? Interview : let's worry only about 32 bit Integer What should we return if the input array is null or size (size of input array) is less than 2? Return 0 From above Information: General approach is as follows : a) Track smallest 2 elements in the array -> p"See full answer

    Data Structures & Algorithms
    Coding
  • Machine Learning Engineer
    System Design
  • Data Scientist
    Behavioral
  • "Great question, give me a moment to collect my thoughts…. When faced with a situation where a product defect is impacting my customers as a product manager my goal would be to roll out a quick & effective enough solution that minimizes the negative impact on users. I would seek available incident information to understand, its blast radius i.e. the impacted users, platforms, duration, if available understand the nature of failure i.e. recoverable vs not, it's root cause and short/long t"

    Coach - "Great question, give me a moment to collect my thoughts…. When faced with a situation where a product defect is impacting my customers as a product manager my goal would be to roll out a quick & effective enough solution that minimizes the negative impact on users. I would seek available incident information to understand, its blast radius i.e. the impacted users, platforms, duration, if available understand the nature of failure i.e. recoverable vs not, it's root cause and short/long t"See full answer

    Product Manager
    Behavioral
    +2 more
  • Google Cloud (GCP) logoAsked at Google Cloud (GCP) 

    "Design an elevator for the blind Clarification Questions A person who is not able to see at all or a person who can partially see? - completely blind Are we we focusing on the people who are visually impaired but, no other physically challenge? - Yes Goal Company already have the elevator products and now company is trying to enter into new market space. Users Blind users with some assistance - we are not focused on these people as they already have some a"

    Vishal B. - "Design an elevator for the blind Clarification Questions A person who is not able to see at all or a person who can partially see? - completely blind Are we we focusing on the people who are visually impaired but, no other physically challenge? - Yes Goal Company already have the elevator products and now company is trying to enter into new market space. Users Blind users with some assistance - we are not focused on these people as they already have some a"See full answer

    Product Manager
    Product Design
    +1 more
  • +2

    "Clarifying question(s) Is the upcoming deadline an internal milestone or is it an external facing deadline (ie. compliance/ product launch / feature release)? What would be the repercussion/Is there any possibility of moving the deadline (if needed)? Do we know any details on the team member, Jane in terms of how long the sick leave is likely to be? Is it a fever or is it something bigger that could have her out for much longer? Situation: Jane taking sick leave and the project has an upcom"

    Adib M. - "Clarifying question(s) Is the upcoming deadline an internal milestone or is it an external facing deadline (ie. compliance/ product launch / feature release)? What would be the repercussion/Is there any possibility of moving the deadline (if needed)? Do we know any details on the team member, Jane in terms of how long the sick leave is likely to be? Is it a fever or is it something bigger that could have her out for much longer? Situation: Jane taking sick leave and the project has an upcom"See full answer

    Technical Program Manager
    Behavioral
  • "Clarify: Are we specifically referring to the point in time after a customer places an order to a restaurant, in the context of Doordash? Or are we talking about a generic online order? (Assume former) I am going to walk through what I think our business and product goal is, followed by the users and their painpoints in the workflow after they place an order. Then I will prioritize which pain points to solve for based on business objective and some other factors, and finally brainstorm and prio"

    Anonymous Crab - "Clarify: Are we specifically referring to the point in time after a customer places an order to a restaurant, in the context of Doordash? Or are we talking about a generic online order? (Assume former) I am going to walk through what I think our business and product goal is, followed by the users and their painpoints in the workflow after they place an order. Then I will prioritize which pain points to solve for based on business objective and some other factors, and finally brainstorm and prio"See full answer

    Product Design
  • Product Manager
    Product Strategy
  • Adobe logoAsked at Adobe 
    Video answer for 'Find a triplet in an array with a given sum.'
    +9

    "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
  • "While all branches should ideally be tested, some are more critical than others based on the following factors: A. High-Risk or Business-Critical Logic Branches that handle authentication & authorization (e.g., login, role-based access control) Financial transactions or payment processing logic (e.g., tax calculations, refunds, invoice generation) Security-related branches (e.g., encryption/decryption, token verification) B. Error Handling & Exception Paths Branches that deal with error conditi"

    Adesegun K. - "While all branches should ideally be tested, some are more critical than others based on the following factors: A. High-Risk or Business-Critical Logic Branches that handle authentication & authorization (e.g., login, role-based access control) Financial transactions or payment processing logic (e.g., tax calculations, refunds, invoice generation) Security-related branches (e.g., encryption/decryption, token verification) B. Error Handling & Exception Paths Branches that deal with error conditi"See full answer

    Software Engineer
    System Design
Showing 1181-1200 of 4138