Interview Questions

Review this list of 4,348 interview questions and answers verified by hiring managers and candidates.
  • Anthropic logoAsked at Anthropic 
    Software Engineer
    Artificial Intelligence
  • Product Manager
    Product Design
  • 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
  • Meta (Facebook) logoAsked at Meta (Facebook) 
    +1

    " import lombok.*; import lombok.extern.slf4j.Slf4j; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.stereotype.Component; import org.springframework.stereotype.Repository; import org.springframework.stereotype.Service; import java.util.*; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java."

    Yash G. - " import lombok.*; import lombok.extern.slf4j.Slf4j; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.stereotype.Component; import org.springframework.stereotype.Repository; import org.springframework.stereotype.Service; import java.util.*; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java."See full answer

    Engineering Manager
    System Design
    +2 more
  • Product Manager
    Product Strategy
  • 🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.

  • Meta (Facebook) logoAsked at Meta (Facebook) 

    "Given a Binary Tree, the task is to find its vertical traversal starting from the leftmost level to the rightmost level. If multiple nodes pass through a vertical line, they should be printed as they appear in the level order traversal of the tree. The idea is to traverse the tree using dfs and maintain a hashmap to store nodes at each horizontal distance (HD) from the root. Starting with an HD of 0 at the root, the HD is decremented for left children and incremented for right children. As we"

    Anonymous Mongoose - "Given a Binary Tree, the task is to find its vertical traversal starting from the leftmost level to the rightmost level. If multiple nodes pass through a vertical line, they should be printed as they appear in the level order traversal of the tree. The idea is to traverse the tree using dfs and maintain a hashmap to store nodes at each horizontal distance (HD) from the root. Starting with an HD of 0 at the root, the HD is decremented for left children and incremented for right children. As we"See full answer

    Software Engineer
    Data Structures & Algorithms
  • "Let's split the experience in four parts: Time between order is placed and order is waiting to be prepped by the shopper. Time between order is prepped by the shopper and ready to be picked by the driver. Time when it's out for delivery. Post delivery experience. Now lets think through what can do wrong? How do we define wrong? A wrong would be anything where a customer has a negative experience. Let's dive into the when things could potentially go wrong. **order is placed and"

    Pree M. - "Let's split the experience in four parts: Time between order is placed and order is waiting to be prepped by the shopper. Time between order is prepped by the shopper and ready to be picked by the driver. Time when it's out for delivery. Post delivery experience. Now lets think through what can do wrong? How do we define wrong? A wrong would be anything where a customer has a negative experience. Let's dive into the when things could potentially go wrong. **order is placed and"See full answer

    Product Manager
    Analytical
    +2 more
  • Google logoAsked at Google 

    "Assumptions: User type: school children living in the USA. Form factor: mobile app on iOS and Android Problem statement School children all across the country visit museums 2-4 times in a year. The museums have info on the contents and layout but that is static. Key value proposition of product is to guide users through the museum Internal company assessment Let's assume the interview is at Google. Google's mission is to organise the world's information so this problem aligns with"

    Rahul J. - "Assumptions: User type: school children living in the USA. Form factor: mobile app on iOS and Android Problem statement School children all across the country visit museums 2-4 times in a year. The museums have info on the contents and layout but that is static. Key value proposition of product is to guide users through the museum Internal company assessment Let's assume the interview is at Google. Google's mission is to organise the world's information so this problem aligns with"See full answer

    Product Manager
    Product Design
  • +1

    "It depends on how computers are distributed. Are they located within same network (behind same switch or router) or distributed across globally? Also, it depends upon if there are any security related encryption or decryption algorithms being executed. Similarly, there are so many factors involved in it. However, if a system is highly responsive then this time might be less than 1 second. For example, any google search responds in less than 1 sec. It is an interesting question and I am eager t"

    Rashmi T. - "It depends on how computers are distributed. Are they located within same network (behind same switch or router) or distributed across globally? Also, it depends upon if there are any security related encryption or decryption algorithms being executed. Similarly, there are so many factors involved in it. However, if a system is highly responsive then this time might be less than 1 second. For example, any google search responds in less than 1 sec. It is an interesting question and I am eager t"See full answer

    System Design
    Technical
  • Meta (Facebook) logoAsked at Meta (Facebook) 
    Technical Program Manager
    Product Strategy
  • Meta (Facebook) logoAsked at Meta (Facebook) 

    "Understand gaps team by interviewing on 1:1, reading past performance reviews and talking to old managers/cross functional Identify Goals and use the SMART framework to set those goals (Specific, Measurable, Attainable, relevant, time related) Share with team and make sure they understand them. Clarify questions if needed. Explain WHY these goals matter. Tie to company goals/mission/culture. Put together an action plan TOGETHER- give often feedback: "pinches no punches"

    Chantal C. - "Understand gaps team by interviewing on 1:1, reading past performance reviews and talking to old managers/cross functional Identify Goals and use the SMART framework to set those goals (Specific, Measurable, Attainable, relevant, time related) Share with team and make sure they understand them. Clarify questions if needed. Explain WHY these goals matter. Tie to company goals/mission/culture. Put together an action plan TOGETHER- give often feedback: "pinches no punches"See full answer

    Engineering Manager
    Behavioral
    +1 more
  • Google logoAsked at Google 
    +2

    "Asked clarifying questions to know if this was a program already in existence, how long the problem had been, causes and how the problem was brought to attention. Using that information, went through a framework (provided generally below): Making sure to review documentation/existing contracts/vendors/plans. Review budget and timeline for the program. Review resources available. Review the data (or gather) and the scope of the project (city center, suburbs, few blocks, whole city, etc). Set mee"

    Anthony F. - "Asked clarifying questions to know if this was a program already in existence, how long the problem had been, causes and how the problem was brought to attention. Using that information, went through a framework (provided generally below): Making sure to review documentation/existing contracts/vendors/plans. Review budget and timeline for the program. Review resources available. Review the data (or gather) and the scope of the project (city center, suburbs, few blocks, whole city, etc). Set mee"See full answer

    Technical Program Manager
    Analytical
    +2 more
  • "def changeString(org: str,target:str) -> bool: lOrg = len(org) lTarget = len(target) \# They have to be equal in lenght if lOrg != lTarget: return False counter1 = Counter(org) counter2 = Counter(target) \# Counter internally iterates through the input sequence, counts the number of times a given object occurs, and stores objects as keys and the counts as values. if counter1 != counter2: return False diff = sum(org[i] != target[i] for i in range(n)) return diff == 2 or (diff == 0 and any(v > 1 f"

    Rafał P. - "def changeString(org: str,target:str) -> bool: lOrg = len(org) lTarget = len(target) \# They have to be equal in lenght if lOrg != lTarget: return False counter1 = Counter(org) counter2 = Counter(target) \# Counter internally iterates through the input sequence, counts the number of times a given object occurs, and stores objects as keys and the counts as values. if counter1 != counter2: return False diff = sum(org[i] != target[i] for i in range(n)) return diff == 2 or (diff == 0 and any(v > 1 f"See full answer

    Data Structures & Algorithms
    Coding
  • Google logoAsked at Google 

    "Preparing for a significant security compliance change can be overwhelming. The most efficient way to achieve GDPR compliance is through interdepartmental collaboration and the use of technology solutions that automate and validate business needs such as policy compliance, data security and required reporting. As the deadline looms, most organizations should already have started assessing the business impact, devising a company-wide implementation plan and addressing additional resource needs. E"

    Mahesh L. - "Preparing for a significant security compliance change can be overwhelming. The most efficient way to achieve GDPR compliance is through interdepartmental collaboration and the use of technology solutions that automate and validate business needs such as policy compliance, data security and required reporting. As the deadline looms, most organizations should already have started assessing the business impact, devising a company-wide implementation plan and addressing additional resource needs. E"See full answer

    Technical Program Manager
    Behavioral
    +2 more
  • 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
  • Perplexity AI logoAsked at Perplexity AI 
    Product Manager
    Artificial Intelligence
    +1 more
  • +4

    "I own a Google Home and use it everyday. To clarify the question, are we talking about a hardware feature or pure software feature? I assume it can be either. My approach: What is the vision or mission of Google Home? What does good look like? Which KPIs do we want to optimize? Who are the top target segments? What are their pain points or needs that are not met today by Google Home? Let's brainstorm potential game features that can address those needs. Evaluate if we ha"

    Vince T. - "I own a Google Home and use it everyday. To clarify the question, are we talking about a hardware feature or pure software feature? I assume it can be either. My approach: What is the vision or mission of Google Home? What does good look like? Which KPIs do we want to optimize? Who are the top target segments? What are their pain points or needs that are not met today by Google Home? Let's brainstorm potential game features that can address those needs. Evaluate if we ha"See full answer

    Product Strategy
  • Adobe logoAsked at Adobe 
    Product Manager
    Product Strategy
  • Capital One logoAsked at Capital One 
    +1

    "I responded how capital one wants to help everyone have access to banking and change banking for the better for all. (Tying it to their mission statement) Leaned into this saying how I personally want to use my use my skills to help increase awareness to financial health for the community and serve the community that im a part of."

    Anonymous Hummingbird - "I responded how capital one wants to help everyone have access to banking and change banking for the better for all. (Tying it to their mission statement) Leaned into this saying how I personally want to use my use my skills to help increase awareness to financial health for the community and serve the community that im a part of."See full answer

    Product Manager
    Behavioral
Showing 1281-1300 of 4348