Interview Questions

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

    "Clarifying question: may I assume that this would be for all new units that Roku would be selling? Ie. they wouldn't be sending new remotes to existing Roku customers? (assume interviewer agrees) Here's how I would approach this analysis: Identify purpose and value of this button for customers Identify the purpose and value for HBO/Max and Roku Posit: HBO should be willing to pay up to the value that HBO/Max gets minus potential discount by Roku for the value that Roku would get Pre"

    Anonymous Sparrow - "Clarifying question: may I assume that this would be for all new units that Roku would be selling? Ie. they wouldn't be sending new remotes to existing Roku customers? (assume interviewer agrees) Here's how I would approach this analysis: Identify purpose and value of this button for customers Identify the purpose and value for HBO/Max and Roku Posit: HBO should be willing to pay up to the value that HBO/Max gets minus potential discount by Roku for the value that Roku would get Pre"See full answer

    Product Manager
    Product Strategy
  • Google logoAsked at Google 

    "Clarifying question: board meetings have varying degrees of formality, usually dependent on the size of the company and whether it's publicly-listed or still private. Is there a particular type of board meetings you'd like me to focus on? (Assume interviewer responds with: why don't you design something that's flexible to be used for any type of board meeting and any type of company) Sounds good, I'll leverage my own experience and understandings on how board meetings are run and problems to so"

    Anonymous Sparrow - "Clarifying question: board meetings have varying degrees of formality, usually dependent on the size of the company and whether it's publicly-listed or still private. Is there a particular type of board meetings you'd like me to focus on? (Assume interviewer responds with: why don't you design something that's flexible to be used for any type of board meeting and any type of company) Sounds good, I'll leverage my own experience and understandings on how board meetings are run and problems to so"See full answer

    Product Manager
  • "I'd start by clarifying the purpose of the in-flight experience. Get more travelers? (adoption) Reduce customer churn? (retention) Gain additional revenue? (revenue) Lets say we want to offer an in-flight experience that drives revenue. It is intuitive that, customer expectations for an in-flight experience will vary based on the duration of the flights: Short haul flights (1 hour or less): Self-help options are better suited. While seating may be important, a slight inconvenience for"

    Atit P. - "I'd start by clarifying the purpose of the in-flight experience. Get more travelers? (adoption) Reduce customer churn? (retention) Gain additional revenue? (revenue) Lets say we want to offer an in-flight experience that drives revenue. It is intuitive that, customer expectations for an in-flight experience will vary based on the duration of the flights: Short haul flights (1 hour or less): Self-help options are better suited. While seating may be important, a slight inconvenience for"See full answer

    Product Manager
    Product Design
  • "I would buy them all miniature ponies and create pony hubs throughout the city where they can scan in and rent a pony. The ponies have wings by the way."

    Christopher T. - "I would buy them all miniature ponies and create pony hubs throughout the city where they can scan in and rent a pony. The ponies have wings by the way."See full answer

    Product Manager
    Behavioral
  • Google logoAsked at Google 
    BizOps & Strategy
    System Design
  • 🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.

  • Adobe logoAsked at Adobe 
    +1

    "def calc(expr): ans = eval(expr) return ans your code goes debug your code below print(calc("1 + 1")) `"

    Sarvesh G. - "def calc(expr): ans = eval(expr) return ans your code goes debug your code below print(calc("1 + 1")) `"See full answer

    Software Engineer
    Data Structures & Algorithms
    +3 more
  • Adobe logoAsked at Adobe 
    +9

    "Problem Statement: The Fibonacci sequence is defined as F(n) = F(n-1) + F(n-2) with F(0) = 1 and F(1) = 1. The solution is given in the problem statement itself. If the value of n = 0, return 1. If the value of n = 1, return 1. Otherwise, return the sum of data at (n - 1) and (n - 2). Explanation: The Fibonacci sequence is a series of numbers where each number is the sum of the two preceding ones, typically starting with 0 and 1. Java Solution: public static int fib(int n"

    Rishi G. - "Problem Statement: The Fibonacci sequence is defined as F(n) = F(n-1) + F(n-2) with F(0) = 1 and F(1) = 1. The solution is given in the problem statement itself. If the value of n = 0, return 1. If the value of n = 1, return 1. Otherwise, return the sum of data at (n - 1) and (n - 2). Explanation: The Fibonacci sequence is a series of numbers where each number is the sum of the two preceding ones, typically starting with 0 and 1. Java Solution: public static int fib(int n"See full answer

    Software Engineer
    Data Structures & Algorithms
    +2 more
  • +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
  • 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
  • Google logoAsked at Google 
    +20

    "def friend_distance(friends, userA, userB): step = 0 total_neighs = set() llen = len(total_neighs) total_neighs.add(userB) while len(total_neighs)!=llen: s = set() step += 1 llen = len(total_neighs) for el in total_neighs: nes = neighbours(friends, userA, el) if userA in nes: return step for p in nes: s.add(p) for el in s: total_neighs.add(el) return -1 def neighbours(A,n1, n2): out = set() for i in range(len(A[n2])): if An2: out.add(i) return out"

    Batman X. - "def friend_distance(friends, userA, userB): step = 0 total_neighs = set() llen = len(total_neighs) total_neighs.add(userB) while len(total_neighs)!=llen: s = set() step += 1 llen = len(total_neighs) for el in total_neighs: nes = neighbours(friends, userA, el) if userA in nes: return step for p in nes: s.add(p) for el in s: total_neighs.add(el) return -1 def neighbours(A,n1, n2): out = set() for i in range(len(A[n2])): if An2: out.add(i) return out"See full answer

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

    " 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
    +7

    " 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 
    +18

    "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
  • +43

    "#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
  • Goldman Sachs logoAsked at Goldman Sachs 
    +9

    "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
    +2 more
  • Amazon logoAsked at Amazon 
    +22

    "import java.util.*; public class MostCommonWords { public static String mostCommonWords(String text) { String removeNonAlphabets = "[.,;!\"'\\(\\)]"; String sanitizedText = text.replaceAll(removeNonAlphabets," ").toLowerCase(); String[] wordsArray = sanitizedText.split("\\s+"); Map hm = new HashMap(); for (String word: wordsArray){ if (!word.isEmpty()){ hm.put(word, hm.getOrDefault(word,0)+1); } } List> entries = new ArrayList(hm.entrySet()); en"

    Sailaja R. - "import java.util.*; public class MostCommonWords { public static String mostCommonWords(String text) { String removeNonAlphabets = "[.,;!\"'\\(\\)]"; String sanitizedText = text.replaceAll(removeNonAlphabets," ").toLowerCase(); String[] wordsArray = sanitizedText.split("\\s+"); Map hm = new HashMap(); for (String word: wordsArray){ if (!word.isEmpty()){ hm.put(word, hm.getOrDefault(word,0)+1); } } List> entries = new ArrayList(hm.entrySet()); en"See full answer

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

    "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
  • LinkedIn logoAsked at LinkedIn 

    "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 
    Product Manager
    Behavioral
Showing 1581-1600 of 4348