Skip to main content

Interview Questions

Review this list of 4,477 interview questions and answers verified by hiring managers and candidates.
  • 29 answers
    +24

    " from typing import List def find_first(array: List[int], num: int) -> int: left = 0 right = len(array) - 1 result = -1 # keep track of leftmost occurence found so far while left <= right: mid = (left + right) // 2 if array[mid] == num: result = mid #Found a potential result right = mid - 1 elif array[mid] < num: left = mid + 1 else: right = mid - 1 return result debug your code"

    Akash C. - " from typing import List def find_first(array: List[int], num: int) -> int: left = 0 right = len(array) - 1 result = -1 # keep track of leftmost occurence found so far while left <= right: mid = (left + right) // 2 if array[mid] == num: result = mid #Found a potential result right = mid - 1 elif array[mid] < num: left = mid + 1 else: right = mid - 1 return result debug your code"See full answer

    Data Structures & Algorithms
    Coding
  • Spotify logoAsked at Spotify 

    Balanced Tree

    IDE
    Medium
    11 answers
    +8

    " public class Solution { // Definition for a binary tree node static class Node { String value; Node left; Node right; Node(String value) { this.value = value; this.left = null; this.right = null; } Node(String value, Node left, Node right) { this.value = value; this.left = left; this.right = right; } } static boolean balanced; public s"

    Basil A. - " public class Solution { // Definition for a binary tree node static class Node { String value; Node left; Node right; Node(String value) { this.value = value; this.left = null; this.right = null; } Node(String value, Node left, Node right) { this.value = value; this.left = left; this.right = right; } } static boolean balanced; public s"See full answer

    Software Engineer
    Data Structures & Algorithms
    +1 more
  • Adobe logoAsked at Adobe 
    31 answers
    +26

    "We can use dictionary to store cache items so that our read / write operations will be O(1). Each time we read or update an existing record, we have to ensure the item is moved to the back of the cache. This will allow us to evict the first item in the cache whenever the cache is full and we need to add new records also making our eviction O(1) Instead of normal dictionary, we will use ordered dictionary to store cache items. This will allow us to efficiently move items to back of the cache a"

    Alfred O. - "We can use dictionary to store cache items so that our read / write operations will be O(1). Each time we read or update an existing record, we have to ensure the item is moved to the back of the cache. This will allow us to evict the first item in the cache whenever the cache is full and we need to add new records also making our eviction O(1) Instead of normal dictionary, we will use ordered dictionary to store cache items. This will allow us to efficiently move items to back of the cache a"See full answer

    Software Engineer
    Data Structures & Algorithms
    +6 more
  • 60 answers
    +51

    "#include #include #include using namespace std; vector diff(const vector& A, const vector& B) { unordered_set elements; vector result; for (const auto& element : A) { elements.insert(element); } for (const auto& element : B) { if (elements.find(element) == elements.end()) { result.push_back(element); } else { elements.erase(element); } } for"

    Chinmay S. - "#include #include #include using namespace std; vector diff(const vector& A, const vector& B) { unordered_set elements; vector result; for (const auto& element : A) { elements.insert(element); } for (const auto& element : B) { if (elements.find(element) == elements.end()) { result.push_back(element); } else { elements.erase(element); } } for"See full answer

    Data Structures & Algorithms
    Coding
  • Accenture logoAsked at Accenture 
    16 answers
    +11

    "public static Integer[] findLargest(int[] input, int m) { if(input==null || input.length==0) return null; PriorityQueue minHeap=new PriorityQueue(); for(int i:input) { if(minHeap.size()(int)top){ minHeap.poll(); minHeap.add(i); } } } Integer[] res=minHeap.toArray(new Integer[0]); Arrays.sort(res); return res; }"

    Divya R. - "public static Integer[] findLargest(int[] input, int m) { if(input==null || input.length==0) return null; PriorityQueue minHeap=new PriorityQueue(); for(int i:input) { if(minHeap.size()(int)top){ minHeap.poll(); minHeap.add(i); } } } Integer[] res=minHeap.toArray(new Integer[0]); Arrays.sort(res); return res; }"See full answer

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

  • Amazon logoAsked at Amazon 
    33 answers
    +25

    " import java.util.*; public class MostCommonWords { public static String mostCommonWords(String text) { // your code goes here Map map = new HashMap(); for(String s : text.replaceAll("[\\p{Punct}]", "").toLowerCase().split(" ")) { if(!s.isEmpty()) { map.merge(s, 1, Integer::sum); } } return map.entrySet().stream().sorted( (e1, e2) -> { "

    Basil A. - " import java.util.*; public class MostCommonWords { public static String mostCommonWords(String text) { // your code goes here Map map = new HashMap(); for(String s : text.replaceAll("[\\p{Punct}]", "").toLowerCase().split(" ")) { if(!s.isEmpty()) { map.merge(s, 1, Integer::sum); } } return map.entrySet().stream().sorted( (e1, e2) -> { "See full answer

    Security Engineer
    Data Structures & Algorithms
    +1 more
  • Google logoAsked at Google 
    1 answer

    "Clarifying question: Why would google want to sunset Youtube? What would the business objective be? Based on how the interviewer responds this could go down multiple paths: If they said just because, then I would address the current state data for the YouTube business. Material benefits: XX Million active users $$ in Annual revenue $$ in subscription revenue $$ monetization through influencers Non-material benefits that align to google core values: Democracy on the web works"

    Aditi N. - "Clarifying question: Why would google want to sunset Youtube? What would the business objective be? Based on how the interviewer responds this could go down multiple paths: If they said just because, then I would address the current state data for the YouTube business. Material benefits: XX Million active users $$ in Annual revenue $$ in subscription revenue $$ monetization through influencers Non-material benefits that align to google core values: Democracy on the web works"See full answer

    Product Manager
    Product Strategy
  • +4

    "To answer why Spotify introduced Podcasts, I would like to use 3C framework- Customer, Competitors and Company. Customers We have seen Spotify has a high WAU. This means users are engaged to the platform for music. Listeners need some new trend to listen to while going to the gym for example, or being stuck in a traffic. Sense of listening to something productive is what users need these days. Podcasts are lesser commitment than audiobooks because of short episode length"

    Simran M. - "To answer why Spotify introduced Podcasts, I would like to use 3C framework- Customer, Competitors and Company. Customers We have seen Spotify has a high WAU. This means users are engaged to the platform for music. Listeners need some new trend to listen to while going to the gym for example, or being stuck in a traffic. Sense of listening to something productive is what users need these days. Podcasts are lesser commitment than audiobooks because of short episode length"See full answer

    Product Manager
    Analytical
    +1 more
  • "Clarifying Questions: What currently defines profile completion? Does it have to be 100% completion or something like 80% of all available profile attributes. Or is it some specific set of must-have profile attributes like bio, current job, previous experience, etc. May I know some successful things that are helping users complete their profiles today and some unsuccessful ones as well that we tried but did not show lift in profile completion metrics? Goal: Engagement from free u"

    Jacob C. - "Clarifying Questions: What currently defines profile completion? Does it have to be 100% completion or something like 80% of all available profile attributes. Or is it some specific set of must-have profile attributes like bio, current job, previous experience, etc. May I know some successful things that are helping users complete their profiles today and some unsuccessful ones as well that we tried but did not show lift in profile completion metrics? Goal: Engagement from free u"See full answer

    Product Manager
    Product Strategy
  • LinkedIn logoAsked at LinkedIn 
    Add answer
    Product Manager
    Product Strategy
  • LinkedIn logoAsked at LinkedIn 
    2 answers

    "Clarifying Questions Candidate : What is the objective we want to achieve? Interviewer : Enhance User Experience, User Engagement and add value Candidate : What platform are we looking at Mobile App or Desktop? Interviewer : Platform independent Candidate : Have we conducted any product discovery experiments at this point? Interviewer : Not yet Candidate : Can we assume the new features will cater to all professionals across different industries? Interviewer : Yes Candidate : A"

    Sneha S. - "Clarifying Questions Candidate : What is the objective we want to achieve? Interviewer : Enhance User Experience, User Engagement and add value Candidate : What platform are we looking at Mobile App or Desktop? Interviewer : Platform independent Candidate : Have we conducted any product discovery experiments at this point? Interviewer : Not yet Candidate : Can we assume the new features will cater to all professionals across different industries? Interviewer : Yes Candidate : A"See full answer

    Product Manager
    Product Strategy
  • LinkedIn logoAsked at LinkedIn 
    Add answer
    Product Manager
    Behavioral
  • "I worked on an automated customer support WhatsApp chatbot for my previous organisation, IIMLoans. The project was not initially on the roadmap. The reason for it being prioritised in the middle of the roadmap was the user drop-off rates that were observed at the inbound to lead qualification step due to the short team size. Since the organisation was an emerging startup and had constraints on budget and man-power, we decided that leveraging AI could help us solve this problem and avoid bigger p"

    Sathwik N. - "I worked on an automated customer support WhatsApp chatbot for my previous organisation, IIMLoans. The project was not initially on the roadmap. The reason for it being prioritised in the middle of the roadmap was the user drop-off rates that were observed at the inbound to lead qualification step due to the short team size. Since the organisation was an emerging startup and had constraints on budget and man-power, we decided that leveraging AI could help us solve this problem and avoid bigger p"See full answer

    Product Manager
    Behavioral
  • Google logoAsked at Google 
    19 answers
    +16

    "Here is the sample answer from the Assistant at https://chat.openai.com/g/g-Z8yp2xrzt-fang-pm-interview-assistant As a Product Manager at Google, designing a product for air travelers involves leveraging Google's technological prowess and vast data resources. Here's a comprehensive approach: 1. \\Understanding Goals and Objectives\\ \\Primary Goal:\\ Enhance the travel experience for air travelers through seamless information access, personalized s"

    Manish M. - "Here is the sample answer from the Assistant at https://chat.openai.com/g/g-Z8yp2xrzt-fang-pm-interview-assistant As a Product Manager at Google, designing a product for air travelers involves leveraging Google's technological prowess and vast data resources. Here's a comprehensive approach: 1. \\Understanding Goals and Objectives\\ \\Primary Goal:\\ Enhance the travel experience for air travelers through seamless information access, personalized s"See full answer

    Product Manager
    Product Design
  • +1

    "I’d discuss definition of keywords: UPI ( service ) and what does revenue mean in UPI Assume goals - Increase 50% by the next one year Geo - India User Users to Users ( P2P ) Users to Merchant ( P2M ) Merchants to Merchant (small-scale UPI ) Picked User Segment - Users to Merchant ( P2M ) Pain points Subscriptions Tap on pay Frauds / Trust issues Upper cap 1L No Cost EMI / EMI on UPIs Credit on UPIs Spending Insights Integrations with devices - smartwatches, smart TVs, sm"

    KittyKat - "I’d discuss definition of keywords: UPI ( service ) and what does revenue mean in UPI Assume goals - Increase 50% by the next one year Geo - India User Users to Users ( P2P ) Users to Merchant ( P2M ) Merchants to Merchant (small-scale UPI ) Picked User Segment - Users to Merchant ( P2M ) Pain points Subscriptions Tap on pay Frauds / Trust issues Upper cap 1L No Cost EMI / EMI on UPIs Credit on UPIs Spending Insights Integrations with devices - smartwatches, smart TVs, sm"See full answer

    Product Manager
    Product Strategy
  • Tinder logoAsked at Tinder 
    Add answer
    Data Scientist
    Behavioral
  • Tinder logoAsked at Tinder 
    Add answer
    Data Scientist
    Behavioral
  • "Clarification question: How many subscription plans are offered by Tinder ? If there is more than one subscription plan, then we need to ask is the fluctuation happening across all plans or in a particular one ? Assumption: Let's say lower priced subscription plan is showing the most fluctuation and there are only two types of plans In this subscription plan which age group is showing the most fluctuation (18-24,25-30, 30+ etc) ? Is there any seasonality trend observed (eg: placemen"

    Srijita P. - "Clarification question: How many subscription plans are offered by Tinder ? If there is more than one subscription plan, then we need to ask is the fluctuation happening across all plans or in a particular one ? Assumption: Let's say lower priced subscription plan is showing the most fluctuation and there are only two types of plans In this subscription plan which age group is showing the most fluctuation (18-24,25-30, 30+ etc) ? Is there any seasonality trend observed (eg: placemen"See full answer

    Data Scientist
    Technical
  • Tinder logoAsked at Tinder 
    1 answer

    "I would recognize the factors that are causing the interference. Then i will use tools like smoothing techniques or algorithms (e.g Kalman filters for time series) which can help isolate genuine trends from noise. In testing i would employ techniqu es like A/B testing to measure interference from unrelated factors and use techniques like regression analysis to seperate the relevant factors from noise."

    Trusha M. - "I would recognize the factors that are causing the interference. Then i will use tools like smoothing techniques or algorithms (e.g Kalman filters for time series) which can help isolate genuine trends from noise. In testing i would employ techniqu es like A/B testing to measure interference from unrelated factors and use techniques like regression analysis to seperate the relevant factors from noise."See full answer

    Data Scientist
    Technical
  • Google logoAsked at Google 
    7 answers
    +4

    "Weak point: suggested something that YouTube Music already does- offering the service free to Premium members. Rebounded by saying the lack of user awareness is a pain point and how it can be mitigated- by frequent check-ins by way of notifications and emails Strong point: discussed overall strategies of global expansion, marketing and innovation with pros and cons for each approach. Settled on discussing an innovation piece combining ranked recommendation of YouTube music as well as personaliz"

    Jazmia H. - "Weak point: suggested something that YouTube Music already does- offering the service free to Premium members. Rebounded by saying the lack of user awareness is a pain point and how it can be mitigated- by frequent check-ins by way of notifications and emails Strong point: discussed overall strategies of global expansion, marketing and innovation with pros and cons for each approach. Settled on discussing an innovation piece combining ranked recommendation of YouTube music as well as personaliz"See full answer

    Product Manager
    Product Design
Showing 1721-1740 of 4477