Interview Questions

Review this list of 3,984 interview questions and answers verified by hiring managers and candidates.
  • Adobe logoAsked at Adobe 
    Video answer for 'Given an nxn grid of 1s and 0s, return the number of islands in the input.'
    +9

    " 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
  • Databricks logoAsked at Databricks 
    Video answer for 'What is your leadership style?'
    +7

    "My leadership style is flexible and adaptive, it varies depending on the team members and the needs of the company. My leadership goal is to empower the team and inspire and grow leaders. In order to achieve that, I combine transformational, democratic and coaching leadership styles. Usually when we are facing a new type of challenge, or at the early stage of a project, I like to adapt the transformational leadership which allows me to listen to all the suggestions from the team members and sta"

    onering2ruleall - "My leadership style is flexible and adaptive, it varies depending on the team members and the needs of the company. My leadership goal is to empower the team and inspire and grow leaders. In order to achieve that, I combine transformational, democratic and coaching leadership styles. Usually when we are facing a new type of challenge, or at the early stage of a project, I like to adapt the transformational leadership which allows me to listen to all the suggestions from the team members and sta"See full answer

    Engineering Manager
    Behavioral
    +5 more
  • Meta (Facebook) logoAsked at Meta (Facebook) 

    "I tried solving this question and here is the recorded video for the entire solution - https://youtu.be/G_LIbTp58XA Feel free to comment here or on the video for further discussion."

    Rjj - "I tried solving this question and here is the recorded video for the entire solution - https://youtu.be/G_LIbTp58XA Feel free to comment here or on the video for further discussion."See full answer

    Engineering Manager
    System Design
    +2 more
  • Adobe logoAsked at Adobe 
    Video answer for 'Find a triplet in an array with a given sum.'
    +5

    "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
  • 🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.

  • +1

    "Firstly, I would like to be in a room with all the stakeholders (tech/business) and the decision makers. Now starts the analysis of the situation. Certain questions that I will be looking for an answer are- Is this a new issue? or an old one? What is the severity and priority of the feature in the release? In terms of business values. How long would it take the engineering team to fix the issue? Can we manage for a workaround meanwhile the issue gets fixed? What are the risks inv"

    Shreya S. - "Firstly, I would like to be in a room with all the stakeholders (tech/business) and the decision makers. Now starts the analysis of the situation. Certain questions that I will be looking for an answer are- Is this a new issue? or an old one? What is the severity and priority of the feature in the release? In terms of business values. How long would it take the engineering team to fix the issue? Can we manage for a workaround meanwhile the issue gets fixed? What are the risks inv"See full answer

    Behavioral
    Analytical
    +1 more
  • Google logoAsked at Google 
    +8

    "Clarifying questions: Should I include the tail of the helicopter when computing the area for this question? Can I assume that the average ping pong ball has a radius of around 1 inch? Assumption: Assume that the helicopter is more circular than a rectangle. Hence use the formula of a circle in computing the area. Assume that the helicopter's radius is 5 feet a 6 feet person can't stand on the helicopter because they're tall for it hence rounding down. Assume that th"

    Shreejal L. - "Clarifying questions: Should I include the tail of the helicopter when computing the area for this question? Can I assume that the average ping pong ball has a radius of around 1 inch? Assumption: Assume that the helicopter is more circular than a rectangle. Hence use the formula of a circle in computing the area. Assume that the helicopter's radius is 5 feet a 6 feet person can't stand on the helicopter because they're tall for it hence rounding down. Assume that th"See full answer

    Product Manager
    Estimation
  • +1

    "It depends on how computers are distributed. Are they located within same network (behind same switch or router) or distributed across globally? Also, it depends upon if there are any security related encryption or decryption algorithms being executed. Similarly, there are so many factors involved in it. However, if a system is highly responsive then this time might be less than 1 second. For example, any google search responds in less than 1 sec. It is an interesting question and I am eager t"

    Rashmi T. - "It depends on how computers are distributed. Are they located within same network (behind same switch or router) or distributed across globally? Also, it depends upon if there are any security related encryption or decryption algorithms being executed. Similarly, there are so many factors involved in it. However, if a system is highly responsive then this time might be less than 1 second. For example, any google search responds in less than 1 sec. It is an interesting question and I am eager t"See full answer

    System Design
    Technical
  • +4

    "-- Write your query here WITH high_value AS( SELECT user_id FROM user_sessions JOIN attribution ON usersessions.sessionid = attribution.session_id GROUP BY user_id HAVING SUM(purchase_value) > 100 ORDER BY SUM(purchase_value) DESC ) SELECT usersessions.userid, marketing_channel FROM user_sessions JOIN high_value ON usersessions.userid = highvalue.userid JOIN attribution ON usersessions.sessionid = attribution.session_id GROUP BY usersessions.userid H"

    Alina G. - "-- Write your query here WITH high_value AS( SELECT user_id FROM user_sessions JOIN attribution ON usersessions.sessionid = attribution.session_id GROUP BY user_id HAVING SUM(purchase_value) > 100 ORDER BY SUM(purchase_value) DESC ) SELECT usersessions.userid, marketing_channel FROM user_sessions JOIN high_value ON usersessions.userid = highvalue.userid JOIN attribution ON usersessions.sessionid = attribution.session_id GROUP BY usersessions.userid H"See full answer

    Coding
    SQL
  • Stripe logoAsked at Stripe 
    Product Manager
    Product Design
  • "Let's split the experience in four parts: Time between order is placed and order is waiting to be prepped by the shopper. Time between order is prepped by the shopper and ready to be picked by the driver. Time when it's out for delivery. Post delivery experience. Now lets think through what can do wrong? How do we define wrong? A wrong would be anything where a customer has a negative experience. Let's dive into the when things could potentially go wrong. **order is placed and"

    Pree M. - "Let's split the experience in four parts: Time between order is placed and order is waiting to be prepped by the shopper. Time between order is prepped by the shopper and ready to be picked by the driver. Time when it's out for delivery. Post delivery experience. Now lets think through what can do wrong? How do we define wrong? A wrong would be anything where a customer has a negative experience. Let's dive into the when things could potentially go wrong. **order is placed and"See full answer

    Product Manager
    Execution
    +2 more
  • "BETWEEN and HAVING clauses in SQL serve different purposes: 1. BETWEEN Clause Used to filter rows based on a range of values. Works with numeric, date, or text values. Can be used with WHERE or HAVING clauses. The range includes both lower and upper bounds. Example: Filtering employees with salaries between 30,000 and 50,000 `SELECT * FROM Employees WHERE salary BETWEEN 30000 AND 50000;` 2. HAVING Clause Used to filter **groups"

    Meenakshi D. - "BETWEEN and HAVING clauses in SQL serve different purposes: 1. BETWEEN Clause Used to filter rows based on a range of values. Works with numeric, date, or text values. Can be used with WHERE or HAVING clauses. The range includes both lower and upper bounds. Example: Filtering employees with salaries between 30,000 and 50,000 `SELECT * FROM Employees WHERE salary BETWEEN 30000 AND 50000;` 2. HAVING Clause Used to filter **groups"See full answer

    Software Engineer
    Concept
    +1 more
  • Capital One logoAsked at Capital One 
    +1

    "I responded how capital one wants to help everyone have access to banking and change banking for the better for all. (Tying it to their mission statement) Leaned into this saying how I personally want to use my use my skills to help increase awareness to financial health for the community and serve the community that im a part of."

    Anonymous Hummingbird - "I responded how capital one wants to help everyone have access to banking and change banking for the better for all. (Tying it to their mission statement) Leaned into this saying how I personally want to use my use my skills to help increase awareness to financial health for the community and serve the community that im a part of."See full answer

    Product Manager
    Behavioral
  • "Microsoft's mission is to empower every person and every organisation on the planet to achieve more. I am always inspired by helping others to achieve more by participating to different volunteer and mentorship experiences like Microsoft Student Ambassador, and GeeksForGeeks student ambassador, and I have also created and shared a free competitive-programming guide which once reached more than 700 stars on github, that enables students and professionals to join Microsoft like Microsoft, that hav"

    Davide P. - "Microsoft's mission is to empower every person and every organisation on the planet to achieve more. I am always inspired by helping others to achieve more by participating to different volunteer and mentorship experiences like Microsoft Student Ambassador, and GeeksForGeeks student ambassador, and I have also created and shared a free competitive-programming guide which once reached more than 700 stars on github, that enables students and professionals to join Microsoft like Microsoft, that hav"See full answer

    Software Engineer
    Behavioral
  • 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?'
    +9

    "from typing import List def maxprofitgreedy(stock_prices: List[int]) -> int: l=0 # buying r=1 # selling max_profit=0 while rstock_prices[l]: profit=stockprices[r]-stockprices[l] maxprofit=max(maxprofit,profit) else: l=r r+=1 return max_profit debug your code below print(maxprofitgreedy([7, 1, 5, 3, 6, 4])) `"

    Prajwal M. - "from typing import List def maxprofitgreedy(stock_prices: List[int]) -> int: l=0 # buying r=1 # selling max_profit=0 while rstock_prices[l]: profit=stockprices[r]-stockprices[l] maxprofit=max(maxprofit,profit) else: l=r r+=1 return max_profit debug your code below print(maxprofitgreedy([7, 1, 5, 3, 6, 4])) `"See full answer

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

    "I own a Google Home and use it everyday. To clarify the question, are we talking about a hardware feature or pure software feature? I assume it can be either. My approach: What is the vision or mission of Google Home? What does good look like? Which KPIs do we want to optimize? Who are the top target segments? What are their pain points or needs that are not met today by Google Home? Let's brainstorm potential game features that can address those needs. Evaluate if we ha"

    Vince T. - "I own a Google Home and use it everyday. To clarify the question, are we talking about a hardware feature or pure software feature? I assume it can be either. My approach: What is the vision or mission of Google Home? What does good look like? Which KPIs do we want to optimize? Who are the top target segments? What are their pain points or needs that are not met today by Google Home? Let's brainstorm potential game features that can address those needs. Evaluate if we ha"See full answer

    Product Strategy
  • Uber logoAsked at Uber 

    "I assume I'm a Product Manager at Uber Eats and I believe we are talking about a food delivery and grocery delivery application that's part of the Uber ecosystem. Yes Before I start looking into the problem statement, I want to ask a few clarifying questions if it's fine with you. Yes Is there any specific reason that I should know why Uber Eats could look into improving the product may be reasons such as an increase in customer queries, any competitive initiatives, etc.? Nothing in spec"

    Mahesh G. - "I assume I'm a Product Manager at Uber Eats and I believe we are talking about a food delivery and grocery delivery application that's part of the Uber ecosystem. Yes Before I start looking into the problem statement, I want to ask a few clarifying questions if it's fine with you. Yes Is there any specific reason that I should know why Uber Eats could look into improving the product may be reasons such as an increase in customer queries, any competitive initiatives, etc.? Nothing in spec"See full answer

    Product Manager
    Product Design
  • "I'd recommend to adjust p-values because of the increased chance of type I errors when conducting a large number of hypothesis. My recommended adjustment approach would be the Benjamini-Hochberg (BH) over the Bonferroni because BH strikes a balance between controlling for false positive and maintaining statistical power whereas Bonferroni is overly conservative while still controlling for false positives, it leads to a higher chance of missing true effects (high type II error)."

    Lucas G. - "I'd recommend to adjust p-values because of the increased chance of type I errors when conducting a large number of hypothesis. My recommended adjustment approach would be the Benjamini-Hochberg (BH) over the Bonferroni because BH strikes a balance between controlling for false positive and maintaining statistical power whereas Bonferroni is overly conservative while still controlling for false positives, it leads to a higher chance of missing true effects (high type II error)."See full answer

    Statistics & Experimentation
  • "The project manager must take care of the risks associated with the particular project. Scrum Master is a team facilitator and serves as a servant leader. The product manager serves as a team leader and is responsible for project performance and ensuring that everything goes according to plan."

    Jack F. - "The project manager must take care of the risks associated with the particular project. Scrum Master is a team facilitator and serves as a servant leader. The product manager serves as a team leader and is responsible for project performance and ensuring that everything goes according to plan."See full answer

    Product Manager
    Behavioral
Showing 1221-1240 of 3984