Interview Questions

Review this list of 4,392 interview questions and answers verified by hiring managers and candidates.
  • Anthropic logoAsked at Anthropic 
    Product Manager
    Behavioral
    +1 more
  • Behavioral
    Product Design
  • Spotify logoAsked at Spotify 

    Balanced Tree

    IDE
    Medium
    +8

    "function visitChildren(node) { let leftSubtreeHeight = 0; let rightSubtreeHeight = 0; let isChildrenBalanced = true; if (node.left) { const { isBalanced, height } = visitChildren(node.left); isChildrenBalanced = isChildrenBalanced && isBalanced; leftSubtreeHeight += height + 1; } if (isChildrenBalanced && node.right) { const { isBalanced, height } = visitChildren(node.right); isChildrenBalanced = isChildrenBalanced && isBalan"

    Tiago R. - "function visitChildren(node) { let leftSubtreeHeight = 0; let rightSubtreeHeight = 0; let isChildrenBalanced = true; if (node.left) { const { isBalanced, height } = visitChildren(node.left); isChildrenBalanced = isChildrenBalanced && isBalanced; leftSubtreeHeight += height + 1; } if (isChildrenBalanced && node.right) { const { isBalanced, height } = visitChildren(node.right); isChildrenBalanced = isChildrenBalanced && isBalan"See full answer

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

  • "Google GOAL is to organize work info and private information to users. Providing info on operating  hours can upset customers making him not to visit google to check hours but rather use other APPs as yelp. Will hurt Google advertising revenue. Also restaurant business if  the user find info is not credible Stakeholders Goggle End  users Owners Current Sources Restaurants website Customers feedback Owners adding it on google business Chances of disambiguation holida"

    Anonymous Koala - "Google GOAL is to organize work info and private information to users. Providing info on operating  hours can upset customers making him not to visit google to check hours but rather use other APPs as yelp. Will hurt Google advertising revenue. Also restaurant business if  the user find info is not credible Stakeholders Goggle End  users Owners Current Sources Restaurants website Customers feedback Owners adding it on google business Chances of disambiguation holida"See full answer

    Product Strategy
  • "Are the revenues down for the entire market/industry? is it an external effect? Has the company made any major shifts in the last month? I'm wondering if this could be a lagging indicator of a change that happened a few weeks ago. Are the revenues down across all product lines, or is it being driven by a particular product? Was there any particular day or time in the last week, when revenues were lower than average? Did we face any outages? is there a competitor in the market? Did we stop advert"

    Sulaiman A. - "Are the revenues down for the entire market/industry? is it an external effect? Has the company made any major shifts in the last month? I'm wondering if this could be a lagging indicator of a change that happened a few weeks ago. Are the revenues down across all product lines, or is it being driven by a particular product? Was there any particular day or time in the last week, when revenues were lower than average? Did we face any outages? is there a competitor in the market? Did we stop advert"See full answer

    Analytical
    Execution
  • Google logoAsked at Google 

    "1. Sales & Revenue Metrics Total Units Sold – Tracks overall headset sales volume. Revenue Growth (%) – Measures whether revenue is increasing from headset sales over time. Sales by Channel – Identifies how sales are distributed across Google Store, third-party retailers (Amazon, Best Buy), and carrier partnerships. Sales by Region – Helps understand geographic demand and refine regional marketing efforts. Attach Rate – Measures how often the headset is purc"

    fuzzyicecream14 - "1. Sales & Revenue Metrics Total Units Sold – Tracks overall headset sales volume. Revenue Growth (%) – Measures whether revenue is increasing from headset sales over time. Sales by Channel – Identifies how sales are distributed across Google Store, third-party retailers (Amazon, Best Buy), and carrier partnerships. Sales by Region – Helps understand geographic demand and refine regional marketing efforts. Attach Rate – Measures how often the headset is purc"See full answer

    Product Manager
    Product Strategy
  • Amazon logoAsked at Amazon 
    Machine Learning Engineer
    Behavioral
    +1 more
  • Behavioral
    Product Design
  • "I would analise it in some macro and micro aspects and then evaluate those, and think abou an release strategy. First considering the macro aspects that are: what is the main business goal and is the product addressing it? what is the user value and how the product is working towards this? And by last, what is the success metric, and how likely the product as it is, is in the way of accomplish it? Then, if those macro aspects are on track, I would go for a second round of analysis, to ev"

    Michelle B. - "I would analise it in some macro and micro aspects and then evaluate those, and think abou an release strategy. First considering the macro aspects that are: what is the main business goal and is the product addressing it? what is the user value and how the product is working towards this? And by last, what is the success metric, and how likely the product as it is, is in the way of accomplish it? Then, if those macro aspects are on track, I would go for a second round of analysis, to ev"See full answer

    Product Manager
    Analytical
    +1 more
  • +9

    "Here is my implementation: select marketing_channel, AVG(purchasevalue) as avgpurchase_value from attribution group by marketing_channel order by avgpurchasevalue DESC ; There is no need to copy and past the line of code for calculating the average into order by, just Alias is enough because going by the order of execution in sql, Always, order by is executed after executing select clause."

    Maliki U. - "Here is my implementation: select marketing_channel, AVG(purchasevalue) as avgpurchase_value from attribution group by marketing_channel order by avgpurchasevalue DESC ; There is no need to copy and past the line of code for calculating the average into order by, just Alias is enough because going by the order of execution in sql, Always, order by is executed after executing select clause."See full answer

    Coding
    SQL
  • Meta (Facebook) logoAsked at Meta (Facebook) 

    "class TreeNode(var val: Int, var left: TreeNode? = null, var right: TreeNode? = null) fun isAverageOfDescendants(root: TreeNode?): Boolean { fun helper(node: TreeNode?): Triple { if (node == null) return Triple(0, 0, true) val (leftSum, leftCount, leftValid) = helper(node.left) val (rightSum, rightCount, rightValid) = helper(node.right) val totalSum = leftSum + rightSum val totalCount = leftCount + rightCount // If leaf n"

    Gaurav B. - "class TreeNode(var val: Int, var left: TreeNode? = null, var right: TreeNode? = null) fun isAverageOfDescendants(root: TreeNode?): Boolean { fun helper(node: TreeNode?): Triple { if (node == null) return Triple(0, 0, true) val (leftSum, leftCount, leftValid) = helper(node.left) val (rightSum, rightCount, rightValid) = helper(node.right) val totalSum = leftSum + rightSum val totalCount = leftCount + rightCount // If leaf n"See full answer

    Software Engineer
    Data Structures & Algorithms
    +1 more
  • Product Manager
    Analytical
    +1 more
  • "assuming food delivery is about convinience not transport ex: household with working members who own a car might still order in instead of driving. to a restaurant for convenience excludes tips and taxes HH = 100M 90% internet penetration low : mid : high income : 20:50:30 preference for the service 30% (bike service would be slower, one needs to keep that in mind +NY has so many food options , people could cook, meal delivery service, uber eats door dash ) HH with internet penetration that can"

    Ananya M. - "assuming food delivery is about convinience not transport ex: household with working members who own a car might still order in instead of driving. to a restaurant for convenience excludes tips and taxes HH = 100M 90% internet penetration low : mid : high income : 20:50:30 preference for the service 30% (bike service would be slower, one needs to keep that in mind +NY has so many food options , people could cook, meal delivery service, uber eats door dash ) HH with internet penetration that can"See full answer

    Estimation
  • Amazon logoAsked at Amazon 

    "input_logs = [ f"{senderid} {receiverid} {transaction_count}" "1 2 2", "3 2 42", "2 2 22", "1 1 12", "2 1 1", "2 5 4", "4 2 15" ] input_threshold = 20 exptected_output = [ list of user_ids that made more than 20 transactions sorted by number of transactions in descending order "3", # 42 transactions "2", # 27 transactions (22 + 1 + 4) #"4", # 15 transactions #"1" # 14 transactions (2 + 12 + 1) ] def gettopapi_users(logs, thres"

    Anonymous Unicorn - "input_logs = [ f"{senderid} {receiverid} {transaction_count}" "1 2 2", "3 2 42", "2 2 22", "1 1 12", "2 1 1", "2 5 4", "4 2 15" ] input_threshold = 20 exptected_output = [ list of user_ids that made more than 20 transactions sorted by number of transactions in descending order "3", # 42 transactions "2", # 27 transactions (22 + 1 + 4) #"4", # 15 transactions #"1" # 14 transactions (2 + 12 + 1) ] def gettopapi_users(logs, thres"See full answer

    Software Engineer
    Data Structures & Algorithms
    +1 more
  • Remitly logoAsked at Remitly 

    "There are many places where you can gather feedback. We can divide the feedback from external and internal sources External sources: facebook twitter reddit G2. Internal sources: on-app surveys or chats support Support engineers Sellers Recordings or notes from other PMs However, you always have to talk with the customers so customer interviews are very important. "

    Sergio C. - "There are many places where you can gather feedback. We can divide the feedback from external and internal sources External sources: facebook twitter reddit G2. Internal sources: on-app surveys or chats support Support engineers Sellers Recordings or notes from other PMs However, you always have to talk with the customers so customer interviews are very important. "See full answer

    Product Manager
    Behavioral
  • Amazon logoAsked at Amazon 
    Software Engineer
    System Design
Showing 2321-2340 of 4392