Interview Questions

Review this list of 4,111 interview questions and answers verified by hiring managers and candidates.
  • +2

    "class Solution { public boolean isValid(String s) { // Time Complexity and Space complexity will be O(n) Stack stack=new Stack(); for(char c:s.toCharArray()){ if(c=='('){ stack.push(')'); } else if(c=='{'){ stack.push('}'); } else if(c=='['){ stack.push(']'); } else if(stack.pop()!=c){ return false; } } return stack.isEmpty(); } }"

    Kanishvaran P. - "class Solution { public boolean isValid(String s) { // Time Complexity and Space complexity will be O(n) Stack stack=new Stack(); for(char c:s.toCharArray()){ if(c=='('){ stack.push(')'); } else if(c=='{'){ stack.push('}'); } else if(c=='['){ stack.push(']'); } else if(stack.pop()!=c){ return false; } } return stack.isEmpty(); } }"See full answer

    Machine Learning Engineer
    Data Structures & Algorithms
    +2 more
  • +13

    "Sounds like interesting problem! First I'd like to clarify a few things.... Clarify/Find Constraints. WHO - who are we improving the post-booking experience for? restaurant visitors? or restaurant staff who view reservations? new vs existing users? WHAT - what do we mean by improve? is there a specific metric we're looking to improve upon (user experience? increasing show-up rate? booking a second time? etc.?) confirm process/JTBD - are we referring to the standard OpenTab"

    Maya B. - "Sounds like interesting problem! First I'd like to clarify a few things.... Clarify/Find Constraints. WHO - who are we improving the post-booking experience for? restaurant visitors? or restaurant staff who view reservations? new vs existing users? WHAT - what do we mean by improve? is there a specific metric we're looking to improve upon (user experience? increasing show-up rate? booking a second time? etc.?) confirm process/JTBD - are we referring to the standard OpenTab"See full answer

    Product Manager
    Product Design
  • Microsoft logoAsked at Microsoft 
    Product Manager
    Product Design
    +2 more
  • "Interviewer: What is your favourite Google product, and how would you improve it? Shailesh: Alright, before that, let me clarify; I have to give the Google product, which I like the most, irrespective of how it is currently performing in the market, is it a market leader or not. Also, I need to justify why it is my favourite product and suggest some improvements. Interviewer: Perfect Shailesh: Okay, the way I would like to go about it is, first, I will explain what qualit"

    Anonymous Muskox - "Interviewer: What is your favourite Google product, and how would you improve it? Shailesh: Alright, before that, let me clarify; I have to give the Google product, which I like the most, irrespective of how it is currently performing in the market, is it a market leader or not. Also, I need to justify why it is my favourite product and suggest some improvements. Interviewer: Perfect Shailesh: Okay, the way I would like to go about it is, first, I will explain what qualit"See full answer

    Product Manager
    Product Design
  • Capital One logoAsked at Capital One 
    +4

    "Situation. Initially, my team consisted of young guys who were hired by team leaders based on hardskills. Previously, the company had just begun the transition from a process-based to a product-based approach. In the process of searching and selecting candidates, the interests of the team and the product owner were not taken into account. The candidate didn't pass a behavioral interview on soft skills. Thus, the team consisted of diverse and talented guys, but not very interested in fast wor"

    Anna D. - "Situation. Initially, my team consisted of young guys who were hired by team leaders based on hardskills. Previously, the company had just begun the transition from a process-based to a product-based approach. In the process of searching and selecting candidates, the interests of the team and the product owner were not taken into account. The candidate didn't pass a behavioral interview on soft skills. Thus, the team consisted of diverse and talented guys, but not very interested in fast wor"See full answer

    Software Engineer
    Behavioral
    +3 more
  • 🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.

  • "I'd approach this first with a clarifying questions geared towards fraud prevention as these are going to be important to actually finding a root solution. I'd want to take cues from the interviewer in order to then identify potential hypotheses. Clarifying questions: How is fraud calculated? It's important to clarify the metric used to know that fraud is increasing. For example, is this a percent of all customers or transactions? Is the fraud that the merchant reported confirmed fraud"

    Michelle D. - "I'd approach this first with a clarifying questions geared towards fraud prevention as these are going to be important to actually finding a root solution. I'd want to take cues from the interviewer in order to then identify potential hypotheses. Clarifying questions: How is fraud calculated? It's important to clarify the metric used to know that fraud is increasing. For example, is this a percent of all customers or transactions? Is the fraud that the merchant reported confirmed fraud"See full answer

    Execution
    Analytical
  • Adobe logoAsked at Adobe 

    "Use a representative of each, e.g. sort the string and add it to the value of a hashmap> where we put all the words that belong to the same anagram together."

    Gaston B. - "Use a representative of each, e.g. sort the string and add it to the value of a hashmap> where we put all the words that belong to the same anagram together."See full answer

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

    "How about this one... Situation: In my previous Organization, I was PM of Financial services- Business Loans. I was building the user journey and end to end process. We were in middle of development and I got one more product to work on - BNPL (Buy Now Pay Later). Tasks: I was asked to provide the roadmap , rough wireframes, guess estimates (No of engineers required) and by when we can ship the MVP. Need not to mention but as startups always have resource constrains and tight deadli"

    Veronica S. - "How about this one... Situation: In my previous Organization, I was PM of Financial services- Business Loans. I was building the user journey and end to end process. We were in middle of development and I got one more product to work on - BNPL (Buy Now Pay Later). Tasks: I was asked to provide the roadmap , rough wireframes, guess estimates (No of engineers required) and by when we can ship the MVP. Need not to mention but as startups always have resource constrains and tight deadli"See full answer

    Behavioral
  • Meta (Facebook) logoAsked at Meta (Facebook) 
    +5

    "The opening of people spending a lot time on Facebook is way too long. Almost half time of the video. The analysis of Facebook business model should be very brief. People know Facebook business model. Maximize the ads display while balancing the user experience is the key. She can drive to this point much faster. Segmentation of user group feels irrelevant to the question. I would answer the question in a different way. Ads revenue is the single most revenue stream for Facebook. So we c"

    Zhi C. - "The opening of people spending a lot time on Facebook is way too long. Almost half time of the video. The analysis of Facebook business model should be very brief. People know Facebook business model. Maximize the ads display while balancing the user experience is the key. She can drive to this point much faster. Segmentation of user group feels irrelevant to the question. I would answer the question in a different way. Ads revenue is the single most revenue stream for Facebook. So we c"See full answer

    Product Design
    Estimation
  • "Clarify- 1) How much time do we have to do this?- 2 years 2) Is there a goal for this product?- We are looking toward engagement towards the Olympics 3) Are we building this for a global auidience or just the US- Up to you 4) Should I keep Meta's mission in mind here? Not necessarily...thinking through the Olympic committee lens Lets understand the Olympics. Its the games that are hosted once every 4 years. Its a global event that hosts many different athletes from various countries. There a"

    Pratik H. - "Clarify- 1) How much time do we have to do this?- 2 years 2) Is there a goal for this product?- We are looking toward engagement towards the Olympics 3) Are we building this for a global auidience or just the US- Up to you 4) Should I keep Meta's mission in mind here? Not necessarily...thinking through the Olympic committee lens Lets understand the Olympics. Its the games that are hosted once every 4 years. Its a global event that hosts many different athletes from various countries. There a"See full answer

    Product Manager
    Product Design
  • OpenAI logoAsked at OpenAI 
    Video answer for 'How is gradient descent and model optimization used in linear regression?'

    "Gradient Descent is an optimisation strategy used in several supervised learning models. It is the technique for finding the optimum solution of an objective function. Typically, for a linear regression use case, it is used to find the weights and bias that produce the lowest loss. It involves computing the partial derivative of the objective function with respect to the weight and bias vectors. To find the optima of the function, the derivative is equated to 0, and iteratively the weight and b"

    Megha V. - "Gradient Descent is an optimisation strategy used in several supervised learning models. It is the technique for finding the optimum solution of an objective function. Typically, for a linear regression use case, it is used to find the weights and bias that produce the lowest loss. It involves computing the partial derivative of the objective function with respect to the weight and bias vectors. To find the optima of the function, the derivative is equated to 0, and iteratively the weight and b"See full answer

    Machine Learning Engineer
    Concept
    +1 more
  • +1

    "Clarifying Questions: What age range are we looking at between 13-19? Any specific range we need to target? - Assume all teens Any demography we would target? - Worldwide Do they have access to phones/laptops or do we need to build an offline product? - Assume they have access to phones and laptops Are there any constraints around privacy or content moderation? - Yes What platform (Facebook core, Messenger, or another product) is this for? - Assume faceb"

    Kartik D. - "Clarifying Questions: What age range are we looking at between 13-19? Any specific range we need to target? - Assume all teens Any demography we would target? - Worldwide Do they have access to phones/laptops or do we need to build an offline product? - Assume they have access to phones and laptops Are there any constraints around privacy or content moderation? - Yes What platform (Facebook core, Messenger, or another product) is this for? - Assume faceb"See full answer

    Product Manager
    Product Design
  • "Currently, I do a lot of data analysis using Azure Databricks and PowerBI. In Databricks, I write some basic SQL queries to retrieve the data and then pull that data into PowerBI for analysis. While this is sufficient, I believe there is room to make this skill set stronger. One way that I mitigate this currently is to maintain a strong relationship with our data analytics team. Whenever I have issues massaging or querying the data, I will reach out to one of those team members to help me get to"

    John F. - "Currently, I do a lot of data analysis using Azure Databricks and PowerBI. In Databricks, I write some basic SQL queries to retrieve the data and then pull that data into PowerBI for analysis. While this is sufficient, I believe there is room to make this skill set stronger. One way that I mitigate this currently is to maintain a strong relationship with our data analytics team. Whenever I have issues massaging or querying the data, I will reach out to one of those team members to help me get to"See full answer

    Product Manager
    Behavioral
  • +2

    "I think i would start by asking what's driving the strategy for testing new ad formats? Possible options could be Increase monetization? Improve ad effectiveness? Any other objectives? Assuming that its both 1&2 - we want to test new ad formats to gauge if these are more effective and lead to higher monetization Ground the conversation into current scenario Instagram Reels is aa short form video platform that users use to showoff their creativity Reels is a relatively new addition to"

    EssGee - "I think i would start by asking what's driving the strategy for testing new ad formats? Possible options could be Increase monetization? Improve ad effectiveness? Any other objectives? Assuming that its both 1&2 - we want to test new ad formats to gauge if these are more effective and lead to higher monetization Ground the conversation into current scenario Instagram Reels is aa short form video platform that users use to showoff their creativity Reels is a relatively new addition to"See full answer

    Product Manager
    Execution
    +1 more
  • "How do you find consecutive days for login (MySQL, SQL, date, subquery, MySQL 5.7, development)? 1 Follow Request Answer More All related (34) Recommended 📷 Trausti Thor Johannsson · Follow Been using MySQL for more than 16 yearsDec 27 There are functions like DATEDIFF but there are also BETWE"

    Hayatu H. - "How do you find consecutive days for login (MySQL, SQL, date, subquery, MySQL 5.7, development)? 1 Follow Request Answer More All related (34) Recommended 📷 Trausti Thor Johannsson · Follow Been using MySQL for more than 16 yearsDec 27 There are functions like DATEDIFF but there are also BETWE"See full answer

    Data Engineer
    Coding
    +1 more
  • +6

    "Interesting question. Let's take a step back and focus on the WHAT and WHY of Google Flights. The narrative for Google Flights as a product or platform imo is: As a platform, I wish to make flight information available, so that users can make knowledgable decisions based on their travel needs. So essentially, it helps users by providing information, so that they can make optimized decisions. In order to determine if Google should introduce ads, we should consider the impact on both val"

    Niranjan M. - "Interesting question. Let's take a step back and focus on the WHAT and WHY of Google Flights. The narrative for Google Flights as a product or platform imo is: As a platform, I wish to make flight information available, so that users can make knowledgable decisions based on their travel needs. So essentially, it helps users by providing information, so that they can make optimized decisions. In order to determine if Google should introduce ads, we should consider the impact on both val"See full answer

    Data Analyst
    Analytical
  • +27

    "To clarify the question, we need to know What portion of “food” are we discussing? All groceries, cold ready-to-heat meals, meal kits, hot meals, or something else? Finding “something else” presents the opportunity to invent a new sector of the business that leverages Amazon’s unique strengths. That’s more likely to be a winner idea, from Amazon’s perspective and the interviewer’s opinion of you, than copying some other company’s existing approach. But it’s also possible the interviewer has a"

    Jonathan S. - "To clarify the question, we need to know What portion of “food” are we discussing? All groceries, cold ready-to-heat meals, meal kits, hot meals, or something else? Finding “something else” presents the opportunity to invent a new sector of the business that leverages Amazon’s unique strengths. That’s more likely to be a winner idea, from Amazon’s perspective and the interviewer’s opinion of you, than copying some other company’s existing approach. But it’s also possible the interviewer has a"See full answer

    Product Manager
    Product Strategy
    +1 more
  • "In what terms we need to improve the quality? Is there any focus on any particular host/customer experience? - Let’s consider that we need to improve the customer engagement on Airbnb platform. Airbnb has both - web interface as well as mobile interface. So, I am assuming the experience on both the platforms. I will brief about Airbnb - Airbnb provides homeowners to rent their spare rooms/properties to travelers/visitors and at the same time, travelers/visitors can get accommodation at budget"

    Anonymous Fox - "In what terms we need to improve the quality? Is there any focus on any particular host/customer experience? - Let’s consider that we need to improve the customer engagement on Airbnb platform. Airbnb has both - web interface as well as mobile interface. So, I am assuming the experience on both the platforms. I will brief about Airbnb - Airbnb provides homeowners to rent their spare rooms/properties to travelers/visitors and at the same time, travelers/visitors can get accommodation at budget"See full answer

    Product Manager
    Execution
    +1 more
  • Meta (Facebook) logoAsked at Meta (Facebook) 

    "I liked the role of a TPM due to the opportunity to contribute to the multiple dimensions of software product development. As a TPM I need to collaborate with multiple teams like Engineering, Product, and other business functions, but I also get the opportunity to contribute to the technical aspects of the program/project. I can use my sharp analytical skills to identify/anticipate problems, and leverage my problem solving skills to unblock the teams. I orchestrate multiple teams effort to del"

    A R. - "I liked the role of a TPM due to the opportunity to contribute to the multiple dimensions of software product development. As a TPM I need to collaborate with multiple teams like Engineering, Product, and other business functions, but I also get the opportunity to contribute to the technical aspects of the program/project. I can use my sharp analytical skills to identify/anticipate problems, and leverage my problem solving skills to unblock the teams. I orchestrate multiple teams effort to del"See full answer

    Technical Program Manager
    Behavioral
  • Apple logoAsked at Apple 
    +16

    "we can use two pointer + set like maintain i,j and also insert jth character to set like while set size is equal to our window j-i+1 then maximize our answer and increase jth pointer till last index"

    Kishor J. - "we can use two pointer + set like maintain i,j and also insert jth character to set like while set size is equal to our window j-i+1 then maximize our answer and increase jth pointer till last index"See full answer

    Software Engineer
    Data Structures & Algorithms
    +4 more
Showing 461-480 of 4111