Interview Questions

Review this list of 4,138 interview questions and answers verified by hiring managers and candidates.
  • Google logoAsked at Google 

    "Question: An array of n integers is given, and a positive integer k, where k << n. k indicates that the absolute difference between each element's current index (icurrent) and the index in the sorted array (isorted) is less than k (|icurr - isorted| < k). Sort the given array. The most common solution is with a Heap: def solution(arr, k): min_heap = [] result = [] for i in range(len(arr)) heapq.heappush(min_heap, arr[i]) "

    Guilherme M. - "Question: An array of n integers is given, and a positive integer k, where k << n. k indicates that the absolute difference between each element's current index (icurrent) and the index in the sorted array (isorted) is less than k (|icurr - isorted| < k). Sort the given array. The most common solution is with a Heap: def solution(arr, k): min_heap = [] result = [] for i in range(len(arr)) heapq.heappush(min_heap, arr[i]) "See full answer

    Software Engineer
    Coding
    +1 more
  • "Question and video tagged not same. "

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

    Behavioral
  • "Inventory Service and Registration service can they be in SYNC always ?? The "experience layer" needs accessed by Hotel owners also ??? How does real time inventory come from all Hotels ???"

    Anup S. - "Inventory Service and Registration service can they be in SYNC always ?? The "experience layer" needs accessed by Hotel owners also ??? How does real time inventory come from all Hotels ???"See full answer

    System Design
  • Meta (Facebook) logoAsked at Meta (Facebook) 

    "Design a Fundraising product Clarifying questions : Are we creating this a standalone product or creating this within Meta apps ? Global product ? Lets say global product What is fundraising ? Raising money for cause Why is it imp ? Allows individuals to see bigger changes with small contributios why now? increased social causes, creator economy, or global crises. Want to make it accessible for everyday person rather than limiting to bigger organizations Ties into Metas mission to give"

    Rani Y. - "Design a Fundraising product Clarifying questions : Are we creating this a standalone product or creating this within Meta apps ? Global product ? Lets say global product What is fundraising ? Raising money for cause Why is it imp ? Allows individuals to see bigger changes with small contributios why now? increased social causes, creator economy, or global crises. Want to make it accessible for everyday person rather than limiting to bigger organizations Ties into Metas mission to give"See full answer

    Product Manager
    Product Design
  • +2

    "Why is the value of an Android user only considering incremental clicks on ads instead of all clicks on ads?"

    So X. - "Why is the value of an Android user only considering incremental clicks on ads instead of all clicks on ads?"See full answer

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

  • "Load Balancer, Multiple API Servers, game Service, pub-sub system, HTTP Long Polling for status updates, write-through cache. No SQL DB to store user, game, and move information."

    gdecuri - "Load Balancer, Multiple API Servers, game Service, pub-sub system, HTTP Long Polling for status updates, write-through cache. No SQL DB to store user, game, and move information."See full answer

    Engineering Manager
    System Design
  • Uber logoAsked at Uber 
    Video answer for 'Design Uber.'
    +2

    "Very helpful! But I have a question: the location of drivers can be changing every minute, so won't reading from location cache returning stale data?"

    Linying W. - "Very helpful! But I have a question: the location of drivers can be changing every minute, so won't reading from location cache returning stale data?"See full answer

    System Design
  • Microsoft logoAsked at Microsoft 

    "The traffic congestion is said to be messedup by vehichles on road.While technically it is said to be a server issue or any other.By using some advanced tech I go to solve that."

    Dheeraj sai P. - "The traffic congestion is said to be messedup by vehichles on road.While technically it is said to be a server issue or any other.By using some advanced tech I go to solve that."See full answer

    Product Manager
    Analytical
    +1 more
  • Software Engineer
    Behavioral
  • "Imagine you're a PM for Mastercard. Design a product for restaurants to help them transition to a purchase order (PO) system that reduces their labor costs Mission & Vision : Mastercard is a payment processing fintech company, it has different payment service & products ex credit/debit cards etc. Mastercard vision and mission to to connect the world financially making payment process seamless across different industries. Clarifying questions : What type of restaurants on basis of revenue we"

    Ashutosh K. - "Imagine you're a PM for Mastercard. Design a product for restaurants to help them transition to a purchase order (PO) system that reduces their labor costs Mission & Vision : Mastercard is a payment processing fintech company, it has different payment service & products ex credit/debit cards etc. Mastercard vision and mission to to connect the world financially making payment process seamless across different industries. Clarifying questions : What type of restaurants on basis of revenue we"See full answer

    Product Manager
    Product Design
  • Google logoAsked at Google 
    +5

    "First, I would make the following assumptions to solve this question without instant feedback. Assumptions: The main use cases for the refrigerator will be to maintain food in the right temperature and will not include making ice cubs or pouring water The only disability of the user is blindness Then, I would identify the main flows used when maintaining food refrigerated, which are: Putting food into the fridge Taking out food out of the fridge Within these flow these are som"

    Maritza C. - "First, I would make the following assumptions to solve this question without instant feedback. Assumptions: The main use cases for the refrigerator will be to maintain food in the right temperature and will not include making ice cubs or pouring water The only disability of the user is blindness Then, I would identify the main flows used when maintaining food refrigerated, which are: Putting food into the fridge Taking out food out of the fridge Within these flow these are som"See full answer

    Product Manager
    Product Design
  • Apple logoAsked at Apple 
    +1

    "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
    Technical
    +3 more
  • "INTERVIEWER: Design a communication app for children ME: GOAL: What are the business goals for this initiative? INTERVIEWER: Please assume. ME: Goals could be to* *improve communication skills/ communicate with classmates/friends better/enter a new market/empower children with disability to communicate better/etc. I’ll assume that the goal here is to enable children to communicate and engage better with their classmates since I have personally seen my niece and nephew (17 a"

    Priya T. - "INTERVIEWER: Design a communication app for children ME: GOAL: What are the business goals for this initiative? INTERVIEWER: Please assume. ME: Goals could be to* *improve communication skills/ communicate with classmates/friends better/enter a new market/empower children with disability to communicate better/etc. I’ll assume that the goal here is to enable children to communicate and engage better with their classmates since I have personally seen my niece and nephew (17 a"See full answer

    Product Design
  • Google logoAsked at Google 
    +2

    "I have no idea if this would qualify, but I took a different, rather singular approach. Curious and gracious in advance for any and all feedback. My main question is whether this response goes into enough depth with regards to all the content types that Google Map stores, as I chose to focus uniquely on image storage (but am sure to state that clearly before I began): Clarifying questions: global map or US/sectional map? Assume global storage on a single end-user device? Yes consider co"

    John S. - "I have no idea if this would qualify, but I took a different, rather singular approach. Curious and gracious in advance for any and all feedback. My main question is whether this response goes into enough depth with regards to all the content types that Google Map stores, as I chose to focus uniquely on image storage (but am sure to state that clearly before I began): Clarifying questions: global map or US/sectional map? Assume global storage on a single end-user device? Yes consider co"See full answer

    Estimation
    Technical
  • Machine Learning Engineer
    Technical
    +3 more
  • +3

    "General Approach (using Max-Heap) Use a max-heap (priority queue) of size k. For each point: Compute the distance to P. Push it into the heap. If heap size > k, remove the farthest point. The heap will contain the k closest points to P. import java.util.*; public class KClosestPoints { static class Point { int x, y; public Point(int x, int y) { this.x = x; this.y = y; } // Euclidean distance squared (no need to take square root) p"

    Khushbu R. - "General Approach (using Max-Heap) Use a max-heap (priority queue) of size k. For each point: Compute the distance to P. Push it into the heap. If heap size > k, remove the farthest point. The heap will contain the k closest points to P. import java.util.*; public class KClosestPoints { static class Point { int x, y; public Point(int x, int y) { this.x = x; this.y = y; } // Euclidean distance squared (no need to take square root) p"See full answer

    Software Engineer
    Coding
    +2 more
  • Capital One logoAsked at Capital One 

    "I would start by asking a clarifying question - Is there a specific problem we are trying to solve? I want to get some guidance from the interviewer around the type of answer they're looking for or if there's specific paths they want us to take. Ultimately, I would start by identifying the users and moving through the process by identifying pain points and then potential solutions. It is important to start to get into the details of the solutions and features once pain points have been identifie"

    Simer S. - "I would start by asking a clarifying question - Is there a specific problem we are trying to solve? I want to get some guidance from the interviewer around the type of answer they're looking for or if there's specific paths they want us to take. Ultimately, I would start by identifying the users and moving through the process by identifying pain points and then potential solutions. It is important to start to get into the details of the solutions and features once pain points have been identifie"See full answer

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

    "Clarifying questions: What is a roofer? A: A person who constructs and repairs roofs. Should this include construction companies or the actual people who construct it, like masons, labourers? A. you can define the segment Any specific geography to operate in? No, any geography or worldwide can be chosen Does the company have a goal in mind? New product creation to capture a market. Can the product be a physical product? Yes. In terms of constructing roofs, there is generally no separate company"

    Upasana S. - "Clarifying questions: What is a roofer? A: A person who constructs and repairs roofs. Should this include construction companies or the actual people who construct it, like masons, labourers? A. you can define the segment Any specific geography to operate in? No, any geography or worldwide can be chosen Does the company have a goal in mind? New product creation to capture a market. Can the product be a physical product? Yes. In terms of constructing roofs, there is generally no separate company"See full answer

    Product Manager
    Product Design
  • Machine Learning Engineer
    Product Design
    +2 more
  • Machine Learning Engineer
    Product Design
    +3 more
Showing 621-640 of 4138