Skip to main content

Interview Questions

Review this list of 4,477 interview questions and answers verified by hiring managers and candidates.
  • 1 answer
    Video answer for 'Implement a 2D Convolutional Filter'

    "I checked the unittest is giving a False assertion as you can see in the colab notebook below. F FAIL: testsimple (main_.Conv2dTest) Traceback (most recent call last): File "", line 19, in test_simple self.assertTrue(torch.equal(output, torch.tensor([[[[ 5., 1.], [ -2., -10.]]]]))) AssertionError: False is not true"

    Abinash S. - "I checked the unittest is giving a False assertion as you can see in the colab notebook below. F FAIL: testsimple (main_.Conv2dTest) Traceback (most recent call last): File "", line 19, in test_simple self.assertTrue(torch.equal(output, torch.tensor([[[[ 5., 1.], [ -2., -10.]]]]))) AssertionError: False is not true"See full answer

    Machine Learning
  • 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
  • Confluent logoAsked at Confluent 
    Add answer
    Software Engineer
    Data Structures & Algorithms
    +1 more
  • Confluent logoAsked at Confluent 
    1 answer

    "We are asked to calculate Sum(over value) for time in (t - window_size, t) where key in (key criteria). To develop a function to set this up. Let w be the window size. I would have an observer of some kind note the key-value, and for the first w windows just add the value to a temporary variable in memory if the key meets the key criteria. Then it would delete the oldest value and add the new value if the new key meets the criteria. At each step after "w", we would take the sum / w and store"

    Prashanth A. - "We are asked to calculate Sum(over value) for time in (t - window_size, t) where key in (key criteria). To develop a function to set this up. Let w be the window size. I would have an observer of some kind note the key-value, and for the first w windows just add the value to a temporary variable in memory if the key meets the key criteria. Then it would delete the oldest value and add the new value if the new key meets the criteria. At each step after "w", we would take the sum / w and store"See full answer

    Software Engineer
    Data Structures & Algorithms
    +1 more
  • Amazon logoAsked at Amazon 
    1 answer

    "This depends on the list of documents and the length of the documents. My implementation will use Trie with node containing the following: class TrieNode { is_end: boolean, instances: { docid → [wordpositions] }, children: array[26] } Look up for a word will give result instances{docid:wordposition...} dictionary (which can be further improved by methods like max instance on a document....you name it...) Trie space is proportional to the total characters in"

    Aelaf G. - "This depends on the list of documents and the length of the documents. My implementation will use Trie with node containing the following: class TrieNode { is_end: boolean, instances: { docid → [wordpositions] }, children: array[26] } Look up for a word will give result instances{docid:wordposition...} dictionary (which can be further improved by methods like max instance on a document....you name it...) Trie space is proportional to the total characters in"See full answer

    Software Engineer
    Data Structures & Algorithms
    +1 more
  • 🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.

  • Uber logoAsked at Uber 
    5 answers
    +2

    "Clarifying questions Define ride sharing app: An app for people who wish to go from one place to another and they prefer to share the ride with fellow riders who are heading to the common route. This app provides a way to book a shared cab or Auto. Type of rides: Does not include luxury cars We are trying to enhance customer experience by ensuring less cancellations from user's side rather then cancellation from driver's side. No timelines involved Need to consider competitors"

    Madhuri J. - "Clarifying questions Define ride sharing app: An app for people who wish to go from one place to another and they prefer to share the ride with fellow riders who are heading to the common route. This app provides a way to book a shared cab or Auto. Type of rides: Does not include luxury cars We are trying to enhance customer experience by ensuring less cancellations from user's side rather then cancellation from driver's side. No timelines involved Need to consider competitors"See full answer

    Product Manager
    Product Strategy
  • Stripe logoAsked at Stripe 
    Add answer
    Video answer for 'How would you communicate layoffs to affected individuals?'
    Engineering Manager
    Behavioral
  • Google logoAsked at Google 
    19 answers
    +15

    "Okay, so before we start discussing how to design this platform, I have a few questions I need details on. Clarification Questions: What do you mean by "Podcasting Platform"? Producing a platform and releasing it online takes several steps (Ideation, scripting, equipment selection, recording, editing, choosing a platform to release, etc.). Are we looking at any specific step here? - Free to Assume Am I PM at Google designing a Podcast Platform as a tool inside existing Google Pro"

    Pranay N. - "Okay, so before we start discussing how to design this platform, I have a few questions I need details on. Clarification Questions: What do you mean by "Podcasting Platform"? Producing a platform and releasing it online takes several steps (Ideation, scripting, equipment selection, recording, editing, choosing a platform to release, etc.). Are we looking at any specific step here? - Free to Assume Am I PM at Google designing a Podcast Platform as a tool inside existing Google Pro"See full answer

    Product Manager
    Product Design
    +1 more
  • Lyft logoAsked at Lyft 
    1 answer
    Software Engineer
    Data Structures & Algorithms
    +1 more
  • Disney logoAsked at Disney 
    Add answer
    Product Manager
    Product Strategy
  • Reddit logoAsked at Reddit 
    Add answer
    Product Manager
    Behavioral
    +2 more
  • Disney logoAsked at Disney 
    Add answer
    Product Manager
    Behavioral
  • Product Manager
    Execution
    +2 more
  • Samsung logoAsked at Samsung 
    1 answer

    "We can use a pool of memory where each index we can store the parent of current index then we can use same lca approach for array instead of pointers."

    Sourav K. - "We can use a pool of memory where each index we can store the parent of current index then we can use same lca approach for array instead of pointers."See full answer

    Software Engineer
    Data Structures & Algorithms
  • Discord logoAsked at Discord 
    1 answer
    Video answer for 'What are the most important engineering manager skills?'

    "Engineering Managers (EMs) juggle multiple responsibilities, which can vary significantly depending on the company, team, and organizational needs. One of the most critical skills for an EM is strategic thinking. This includes setting a clear vision for the team, participating in roadmap planning meetings, and crafting actionable roadmaps to guide the team toward its goals. In addition to strategic thinking, an EM must excel in three key areas: People Management: This involves ensuring te"

    Pramod S. - "Engineering Managers (EMs) juggle multiple responsibilities, which can vary significantly depending on the company, team, and organizational needs. One of the most critical skills for an EM is strategic thinking. This includes setting a clear vision for the team, participating in roadmap planning meetings, and crafting actionable roadmaps to guide the team toward its goals. In addition to strategic thinking, an EM must excel in three key areas: People Management: This involves ensuring te"See full answer

    Engineering Manager
    Behavioral
  • Amazon logoAsked at Amazon 
    1 answer
    Video answer for 'Design a Distributed Message Queue'

    "Good Discussion on the distributed messaging queues (Complex topic with lot of nuances) Liked the mind-map style drawing of requirements and metrics capture Touched on different types of queue styles (point to point, pub-sub, fan-out/fan-in) Storage and WAL usage was interesting Some distributed queue challenges that could be helpful to highlight / expand are: Message guarantee / semantics - Ordering of messages across different servers Replication Master slave architecture or Pe"

    Karthik R. - "Good Discussion on the distributed messaging queues (Complex topic with lot of nuances) Liked the mind-map style drawing of requirements and metrics capture Touched on different types of queue styles (point to point, pub-sub, fan-out/fan-in) Storage and WAL usage was interesting Some distributed queue challenges that could be helpful to highlight / expand are: Message guarantee / semantics - Ordering of messages across different servers Replication Master slave architecture or Pe"See full answer

    Software Engineer
    System Design
  • 3 answers
    Video answer for 'Design a Hotel Booking Service'

    "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
  • OpenAI logoAsked at OpenAI 
    5 answers
    Video answer for 'Design ChatGPT'
    +2

    "The addition of an intermediate "sanitization" ML is something Neeraj used in the Uber Eats design and again seems kind of outside the scope here and redundant. This can simply be built into the AI response model to save a step. It's not clear what benefit this step provides, and he basically said we should have it "just because it would be good" and there's no concrete reasoning why to include it. Adding a Kafka queue to handle the thumbs-down ratings? For what purpose do you need a queue othe"

    Robert H. - "The addition of an intermediate "sanitization" ML is something Neeraj used in the Uber Eats design and again seems kind of outside the scope here and redundant. This can simply be built into the AI response model to save a step. It's not clear what benefit this step provides, and he basically said we should have it "just because it would be good" and there's no concrete reasoning why to include it. Adding a Kafka queue to handle the thumbs-down ratings? For what purpose do you need a queue othe"See full answer

    Software Engineer
    System Design
    +1 more
  • Add answer
    Video answer for 'Predict Harmful Text'
    Coding
    Machine Learning
  • Meta logoAsked at Meta 
    1 answer

    "Clarification Are we focusing on the Amazon shopping cart specifically, or are there any other features involved? Are there any specific user groups (e.g., Prime users, international users) we need to consider? Is there a particular focus on conversion or user engagement? 1. Business Context Feature Goal: The cart serves as the gateway between user interest and the actual purchase, helping to reduce friction in the buying process. Business Model:Amazon take"

    Ram - "Clarification Are we focusing on the Amazon shopping cart specifically, or are there any other features involved? Are there any specific user groups (e.g., Prime users, international users) we need to consider? Is there a particular focus on conversion or user engagement? 1. Business Context Feature Goal: The cart serves as the gateway between user interest and the actual purchase, helping to reduce friction in the buying process. Business Model:Amazon take"See full answer

    Product Manager
    Analytical
Showing 1261-1280 of 4477