Interview Questions

Review this list of 3,984 interview questions and answers verified by hiring managers and candidates.
  • +11

    "Confused, why is it blurred out at the end?"

    Foo B. - "Confused, why is it blurred out at the end?"See full answer

    Coding
    SQL
  • Apple logoAsked at Apple 
    +15

    "function isValid(s) { const stack = []; for (let i=0; i < s.length; i++) { const char = s.charAt(i); if (['(', '{', '['].includes(char)) { stack.push(char); } else { const top = stack.pop(); if ((char === ')' && top !== '(') || (char === '}' && top !== '{') || (char === ']' && top !== '[')) { return false; } } } return stack.length === 0"

    Tiago R. - "function isValid(s) { const stack = []; for (let i=0; i < s.length; i++) { const char = s.charAt(i); if (['(', '{', '['].includes(char)) { stack.push(char); } else { const top = stack.pop(); if ((char === ')' && top !== '(') || (char === '}' && top !== '{') || (char === ']' && top !== '[')) { return false; } } } return stack.length === 0"See full answer

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

    "First, I would like to discuss and align what is meaningful social interaction. Given facebook's mission to empower users to build communities and get people closer, it is important that users have "meaningful social interaction" The goal of defining this metric is to use this as a north star or success metric around any efforts to increase engagement. It can also help with ads targeting/monetization by showing ads only during deeper interactions and hence might get better yield. Given faceb"

    Praveen - "First, I would like to discuss and align what is meaningful social interaction. Given facebook's mission to empower users to build communities and get people closer, it is important that users have "meaningful social interaction" The goal of defining this metric is to use this as a north star or success metric around any efforts to increase engagement. It can also help with ads targeting/monetization by showing ads only during deeper interactions and hence might get better yield. Given faceb"See full answer

    Analytical
  • Pinterest logoAsked at Pinterest 
    Product Manager
    Product Design
    +1 more
  • Technical Program Manager
    Behavioral
  • 🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.

  • Google logoAsked at Google 

    "Clarifying question? What is GCP and what does it mean to create a new GCP region in Portugal? GCP is Google Cloud Portugal. Creating a new region means creating data centres (clouds) which can be used as hosts. Is there a business objective to consider Portugal for a new region? None in particular Structure: Explore internal factors Is there a particular business goal that we are trying to accomplish like goal of getting more business from EU companies in coming few years? If yes"

    S Y. - "Clarifying question? What is GCP and what does it mean to create a new GCP region in Portugal? GCP is Google Cloud Portugal. Creating a new region means creating data centres (clouds) which can be used as hosts. Is there a business objective to consider Portugal for a new region? None in particular Structure: Explore internal factors Is there a particular business goal that we are trying to accomplish like goal of getting more business from EU companies in coming few years? If yes"See full answer

    Product Manager
    Product Strategy
    +1 more
  • Google logoAsked at Google 
    +29

    "How important are referrals? Do you need multiple vs. just one? Does it matter who refers you?"

    Mitchell K. - "How important are referrals? Do you need multiple vs. just one? Does it matter who refers you?"See full answer

    Product Manager
    Behavioral
  • " are we considering ride sharing app or also Uber Eats? If we are considering Ride sharing app Uber is successful when a Customer is safely dropped at its selected destination and Uber driver is paid for the drive. For Uber to be successful in a new city we want to track Number of completed rides per day/week Number of customers who came back to the app for another ride after first one was completed. Number of active drivers per day. Number of drivers completing at least 1 ride"

    Sanjana G. - " are we considering ride sharing app or also Uber Eats? If we are considering Ride sharing app Uber is successful when a Customer is safely dropped at its selected destination and Uber driver is paid for the drive. For Uber to be successful in a new city we want to track Number of completed rides per day/week Number of customers who came back to the app for another ride after first one was completed. Number of active drivers per day. Number of drivers completing at least 1 ride"See full answer

    Product Manager
  • +20

    "import string from collections import defaultdict def mostcommonwords(text): d = defaultdict(int) s = text.translate(str.maketrans('', '', string.punctuation)) for w in s.lower().split(): d[w] = d[w] + 1 return sorted(sorted(d.items()), reverse=True, key=lambda x: x[1]) `"

    Michael S. - "import string from collections import defaultdict def mostcommonwords(text): d = defaultdict(int) s = text.translate(str.maketrans('', '', string.punctuation)) for w in s.lower().split(): d[w] = d[w] + 1 return sorted(sorted(d.items()), reverse=True, key=lambda x: x[1]) `"See full answer

    Data Structures & Algorithms
    Coding
  • Meta (Facebook) logoAsked at Meta (Facebook) 
    Product Manager
    Product Strategy
  • "python: def justifywords(wordslist, width): result = [] currlinechar_count = 0 curr_words = [] for word in words_list: if curr_words: space_needed = len(word) + 1 # Space needed for the word and a preceding space else: space_needed = len(word) if currlinecharcount + spaceneeded > width: result.append(' '.join(curr_words)) curr_words = [word] currlinechar_count = len("

    Anonymous Unicorn - "python: def justifywords(wordslist, width): result = [] currlinechar_count = 0 curr_words = [] for word in words_list: if curr_words: space_needed = len(word) + 1 # Space needed for the word and a preceding space else: space_needed = len(word) if currlinecharcount + spaceneeded > width: result.append(' '.join(curr_words)) curr_words = [word] currlinechar_count = len("See full answer

    Software Engineer
    Coding
  • "Define the feature A virtual card number is a temporary or disposable card number generated by your credit card issuer or financial institution. It is designed to protect your actual credit card information during online transactions. Its main purpose is the security of your actual credit card. Clarification questions No questions What is the purpose of the feature? Enhanced Security: Using a virtual card number protects your actual credit card details from being exposed to potentia"

    Ekta M. - "Define the feature A virtual card number is a temporary or disposable card number generated by your credit card issuer or financial institution. It is designed to protect your actual credit card information during online transactions. Its main purpose is the security of your actual credit card. Clarification questions No questions What is the purpose of the feature? Enhanced Security: Using a virtual card number protects your actual credit card details from being exposed to potentia"See full answer

    Product Manager
    Analytical
  • Match Group logoAsked at Match Group 

    "I believe human emotions can't be judged by number and hence I have always made mistakes while judging the outcome of a reaction by data."

    Mc L. - "I believe human emotions can't be judged by number and hence I have always made mistakes while judging the outcome of a reaction by data."See full answer

    Behavioral
  • Microsoft logoAsked at Microsoft 
    Solutions Architect
    Behavioral
  • "Redefining the question as: How will you solve the problem of misinformation on FB? Clarifying questions: Are we talking about building a product? (Up to you) What exactly is misinformation? (Fake news, inaccurate facts being shared on social media) Goal: Reduce the amount of misinformation spread on the platform and improve user trust. Key users associated with misinformation: News Accounts (eg CNN) - They may get involved in some controversy about a fake photoshopped artic"

    P K. - "Redefining the question as: How will you solve the problem of misinformation on FB? Clarifying questions: Are we talking about building a product? (Up to you) What exactly is misinformation? (Fake news, inaccurate facts being shared on social media) Goal: Reduce the amount of misinformation spread on the platform and improve user trust. Key users associated with misinformation: News Accounts (eg CNN) - They may get involved in some controversy about a fake photoshopped artic"See full answer

    Product Design
  • Dropbox logoAsked at Dropbox 
    Video answer for 'How do you sunset a project?'
    +9

    "Video has audio disruption starting at ~7th minute, did not understand what law he was talking about. Can someone please clarify?"

    Ushita S. - "Video has audio disruption starting at ~7th minute, did not understand what law he was talking about. Can someone please clarify?"See full answer

    Program Sense
  • "While all branches should ideally be tested, some are more critical than others based on the following factors: A. High-Risk or Business-Critical Logic Branches that handle authentication & authorization (e.g., login, role-based access control) Financial transactions or payment processing logic (e.g., tax calculations, refunds, invoice generation) Security-related branches (e.g., encryption/decryption, token verification) B. Error Handling & Exception Paths Branches that deal with error conditi"

    Adesegun K. - "While all branches should ideally be tested, some are more critical than others based on the following factors: A. High-Risk or Business-Critical Logic Branches that handle authentication & authorization (e.g., login, role-based access control) Financial transactions or payment processing logic (e.g., tax calculations, refunds, invoice generation) Security-related branches (e.g., encryption/decryption, token verification) B. Error Handling & Exception Paths Branches that deal with error conditi"See full answer

    Software Engineer
    System Design
  • System Design
    Machine Learning
  • "Firstly, congratulations to both the interviewer and interviewee. This was a great learning experience However, being a Full Stack engineer and I was having the following suggestions around the Data Model - Driver & Approval can be two different tables Approval & Document - Approval can be a tuple of (userid,documentid) - comments against a rejection (marks the document which triggers rejection)In this way we can capture the entire history of approval workflow (initiate/pending/appr"

    Nilanjan D. - "Firstly, congratulations to both the interviewer and interviewee. This was a great learning experience However, being a Full Stack engineer and I was having the following suggestions around the Data Model - Driver & Approval can be two different tables Approval & Document - Approval can be a tuple of (userid,documentid) - comments against a rejection (marks the document which triggers rejection)In this way we can capture the entire history of approval workflow (initiate/pending/appr"See full answer

    Data Modeling
  • Microsoft logoAsked at Microsoft 

    "I think AI such as ChatGPT seemed to spit out its answers fast and instinctively, hence proving its efficiency but in the recent versions it seems to have acquired reasoning skills which was revealed 'transparently' to users. This new, reasoning skills introduce a small delay in its response and explains what it does during the delay but I do not really think that it is "thinking" any differently than before, except that it is constrained by some purported rules when asked to summarise certain b"

    Louisa C. - "I think AI such as ChatGPT seemed to spit out its answers fast and instinctively, hence proving its efficiency but in the recent versions it seems to have acquired reasoning skills which was revealed 'transparently' to users. This new, reasoning skills introduce a small delay in its response and explains what it does during the delay but I do not really think that it is "thinking" any differently than before, except that it is constrained by some purported rules when asked to summarise certain b"See full answer

    Customer Success Manager
    Behavioral
Showing 781-800 of 3984