Interview Questions

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

    " Brute Force Two Pointer Solution: from typing import List def two_sum(nums, target): for i in range(len(nums)): for j in range(i+1, len(nums)): if nums[i]+nums[j]==target: return [i,j] return [] debug your code below print(two_sum([2, 7, 11, 15], 9)) `"

    Ritaban M. - " Brute Force Two Pointer Solution: from typing import List def two_sum(nums, target): for i in range(len(nums)): for j in range(i+1, len(nums)): if nums[i]+nums[j]==target: return [i,j] return [] debug your code below print(two_sum([2, 7, 11, 15], 9)) `"See full answer

    Software Engineer
    Data Structures & Algorithms
    +5 more
  • Capital One logoAsked at Capital One 
    Software Engineer
    Data Structures & Algorithms
    +2 more
  • "Clarified whether this drop is observed in a particular geography or with a particular demography or devices. Then moved to the analysis of any bugs or flow broken or any defects. If not then talk about any competitor launching a product or feature in a similar category. If yes then double down on that or else speak about any political or marketing campaign that's been launched or any negative news about Facebook. What-Why analysis and concluded with a possible cause."

    Aekagra S. - "Clarified whether this drop is observed in a particular geography or with a particular demography or devices. Then moved to the analysis of any bugs or flow broken or any defects. If not then talk about any competitor launching a product or feature in a similar category. If yes then double down on that or else speak about any political or marketing campaign that's been launched or any negative news about Facebook. What-Why analysis and concluded with a possible cause."See full answer

    Product Manager
    Execution
    +1 more
  • Apple logoAsked at Apple 
    +10

    "class ListNode: def init(self, val=0, next=None): self.val = val self.next = next def has_cycle(head: ListNode) -> bool: slow, fast = head, head while fast and fast.next: slow = slow.next fast = fast.next.next if slow == fast: return True return False debug your code below node1 = ListNode(1) node2 = ListNode(2) node3 = ListNode(3) node4 = ListNode(4) creates a linked list with a cycle: 1 -> 2 -> 3 -> 4"

    Anonymous Roadrunner - "class ListNode: def init(self, val=0, next=None): self.val = val self.next = next def has_cycle(head: ListNode) -> bool: slow, fast = head, head while fast and fast.next: slow = slow.next fast = fast.next.next if slow == fast: return True return False debug your code below node1 = ListNode(1) node2 = ListNode(2) node3 = ListNode(3) node4 = ListNode(4) creates a linked list with a cycle: 1 -> 2 -> 3 -> 4"See full answer

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

  • Data Scientist
    Analytical
    +1 more
  • +7

    "Agile methodologies are chosen by organizations to enhance delivery speed, integrate shorter feedback loops, and provide incremental value to customers. However, the suitability of Agile depends on several factors, including the nature of the work, team structure, and organizational objectives. From my experience, for teams focused on new feature development, Scrum tends to be more effective. Scrum’s structured cadence—emphasizing backlog grooming, sprint planning, and regular retrospective"

    Manik K. - "Agile methodologies are chosen by organizations to enhance delivery speed, integrate shorter feedback loops, and provide incremental value to customers. However, the suitability of Agile depends on several factors, including the nature of the work, team structure, and organizational objectives. From my experience, for teams focused on new feature development, Scrum tends to be more effective. Scrum’s structured cadence—emphasizing backlog grooming, sprint planning, and regular retrospective"See full answer

    Technical
    Program Sense
    +1 more
  • Nextdoor logoAsked at Nextdoor 

    "Product Led Growth Strategy is where literally product drives growth Examples: Referrals Shares on social platforms Product offers basic functionalities for free and user has to upgrade for overall access Inviting friends or teams to your whiteboard In order to build an effective product led growth strategy we need to understand the users pain points, motivations, un met needs in detail that will help us to understand what resonates with the users such that they love the product, s"

    Durga prasad K. - "Product Led Growth Strategy is where literally product drives growth Examples: Referrals Shares on social platforms Product offers basic functionalities for free and user has to upgrade for overall access Inviting friends or teams to your whiteboard In order to build an effective product led growth strategy we need to understand the users pain points, motivations, un met needs in detail that will help us to understand what resonates with the users such that they love the product, s"See full answer

    Product Manager
    Product Strategy
  • "Structure: 1. Ask Clarifying Questions 2. Look at external factors 3. Look at Internal factors ( Slice the data aross different cuts and plan accordingly) Clarifying Questions: What's an outbound message? Is it something Linkedin users send among each other? Decline trends: Is the decline steep or gradual? From when, are we seeing this decline (Say since a week, fortnight, month, etc) External Factors: Have we seen any competition led changes/ new campaigns etc? Have we see"

    Meenakshi sundaram M. - "Structure: 1. Ask Clarifying Questions 2. Look at external factors 3. Look at Internal factors ( Slice the data aross different cuts and plan accordingly) Clarifying Questions: What's an outbound message? Is it something Linkedin users send among each other? Decline trends: Is the decline steep or gradual? From when, are we seeing this decline (Say since a week, fortnight, month, etc) External Factors: Have we seen any competition led changes/ new campaigns etc? Have we see"See full answer

    Execution
    Behavioral
    +1 more
  • "If you effectively listen and understand their point of view, then take action to address the issue quickly. Don't let too much time slip between the conflict and the resolution. If resolving the concern will take more time, communicate the current status and next steps with the stakeholder."

    Abdurhman M. - "If you effectively listen and understand their point of view, then take action to address the issue quickly. Don't let too much time slip between the conflict and the resolution. If resolving the concern will take more time, communicate the current status and next steps with the stakeholder."See full answer

    Technical Program Manager
    Behavioral
    +1 more
  • Adobe logoAsked at Adobe 
    +7

    "function findPrimes(n) { if (n < 2) return []; const primes = []; for (let i=2; i <= n; i++) { const half = Math.floor(i/2); let isPrime = true; for (let prime of primes) { if (i % prime === 0) { isPrime = false; break; } } if (isPrime) { primes.push(i); } } return primes; } `"

    Tiago R. - "function findPrimes(n) { if (n < 2) return []; const primes = []; for (let i=2; i <= n; i++) { const half = Math.floor(i/2); let isPrime = true; for (let prime of primes) { if (i % prime === 0) { isPrime = false; break; } } if (isPrime) { primes.push(i); } } return primes; } `"See full answer

    Data Engineer
    Data Structures & Algorithms
    +4 more
  • Meta (Facebook) logoAsked at Meta (Facebook) 

    "Clarifying Question: Are we talking about mission-oriented success or business-oriented success? [Let's assume mission-oriented] Let's start by talking about where Pages fit into the mission of Facebook. Then we'll cover some relevant metrics, identify which are most important for measuring the success of Pages, and then talk about some trade-offs as part of a final recommendation. Mission: Facebook's mission is to empower people to build community and to bring people closer togeth"

    Ian S. - "Clarifying Question: Are we talking about mission-oriented success or business-oriented success? [Let's assume mission-oriented] Let's start by talking about where Pages fit into the mission of Facebook. Then we'll cover some relevant metrics, identify which are most important for measuring the success of Pages, and then talk about some trade-offs as part of a final recommendation. Mission: Facebook's mission is to empower people to build community and to bring people closer togeth"See full answer

    Execution
    Product Design
    +1 more
  • "I would very confidently say - Never. Did I failed with a Product? - Yes. Did I launch a product that was sub-par? - Yes. Did I failed to launch a product? - Never. Also, I don't see it as part of growing up as PM to Fail to launch a Product. I think it's a tricky quesion, better to be avoided."

    Tarun K. - "I would very confidently say - Never. Did I failed with a Product? - Yes. Did I launch a product that was sub-par? - Yes. Did I failed to launch a product? - Never. Also, I don't see it as part of growing up as PM to Fail to launch a Product. I think it's a tricky quesion, better to be avoided."See full answer

    Product Manager
    Behavioral
  • +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

    Data Analyst
    Behavioral
    +2 more
  • "Outliers are data points that significantly deviate from the majority of the data distribution. They can arise due to various reasons, such as measurement errors, natural variability, or rare events. Outliers can distort statistical analyses and machine learning models, making it crucial to detect and handle them properly."

    Cesar F. - "Outliers are data points that significantly deviate from the majority of the data distribution. They can arise due to various reasons, such as measurement errors, natural variability, or rare events. Outliers can distort statistical analyses and machine learning models, making it crucial to detect and handle them properly."See full answer

    Statistics & Experimentation
  • "Determining the need of a product, starts with the Problem or challenge we are trying to solve hence identifying a clear problem statement would kickoff the further analysis to find the answers of WHY... any product needed? WHAT... will it bring to the table? There are various techniques which can be used here like SWOT, Feedback, brainstorming workshop with stakeholders etc."

    Sanjay V. - "Determining the need of a product, starts with the Problem or challenge we are trying to solve hence identifying a clear problem statement would kickoff the further analysis to find the answers of WHY... any product needed? WHAT... will it bring to the table? There are various techniques which can be used here like SWOT, Feedback, brainstorming workshop with stakeholders etc."See full answer

    Product Manager
  • "Problem: Given an input string txt consisting of alphanumeric characters and the parentheses characters '(' & ')', write a function which removes the minimum number of characters to return a version of the string with properly balanced parenthesis. Answer: You can do this with a counter. Psuedo-Python Start with counter = 0 output = [] Iterate through the string, every time you encounter a '(', increment the counter. Add the character to the output. If you encounter a ')', decrement the coun"

    Michael B. - "Problem: Given an input string txt consisting of alphanumeric characters and the parentheses characters '(' & ')', write a function which removes the minimum number of characters to return a version of the string with properly balanced parenthesis. Answer: You can do this with a counter. Psuedo-Python Start with counter = 0 output = [] Iterate through the string, every time you encounter a '(', increment the counter. Add the character to the output. If you encounter a ')', decrement the coun"See full answer

    Machine Learning Engineer
    Data Structures & Algorithms
    +1 more
  • +15

    "The unique id is not clear in this question"

    Anonymous Possum - "The unique id is not clear in this question"See full answer

    Coding
    SQL
  • +17

    " from typing import Dict, List, Optional def max_profit(prices: Dict[str, int]) -> Optional[List[str]]: pass # your code goes here max = [None, 0] min = [None, float("inf")] for city, price in prices.items(): if price > max[1]: max[0], max[1] = city, price if price 0: return [min[0], max[0]] return None debug your code below prices = {'"

    Rick E. - " from typing import Dict, List, Optional def max_profit(prices: Dict[str, int]) -> Optional[List[str]]: pass # your code goes here max = [None, 0] min = [None, float("inf")] for city, price in prices.items(): if price > max[1]: max[0], max[1] = city, price if price 0: return [min[0], max[0]] return None debug your code below prices = {'"See full answer

    Data Structures & Algorithms
    Coding
  • Google logoAsked at Google 
    +2

    "Clarifying questions: Why are we fixing the roads? Is it due to temporary damage or something structural has gone wrong? What is our purpose behind fixing the roads? Increase mobility in an area? Reduce inequality? reduce crime? Assumptions: Roads have had temporary damage due to rain / storm We know the specific roads which are bad and will need to be fixed Want to increase commercial traffic. Want people to visit a specific area which has bad roads and slow moving traffic. W"

    Prateek S. - "Clarifying questions: Why are we fixing the roads? Is it due to temporary damage or something structural has gone wrong? What is our purpose behind fixing the roads? Increase mobility in an area? Reduce inequality? reduce crime? Assumptions: Roads have had temporary damage due to rain / storm We know the specific roads which are bad and will need to be fixed Want to increase commercial traffic. Want people to visit a specific area which has bad roads and slow moving traffic. W"See full answer

    Technical Program Manager
    Program Sense
    +2 more
Showing 1241-1260 of 4138