Skip to main content

Interview Questions

Review this list of 4,415 interview questions and answers verified by hiring managers and candidates.
  • "A Random Forest works by building an ensemble of decision trees, each trained on a slightly different version of the data. The key mechanism is bagging: for each tree, we sample the training data with replacement (bootstrapping), so every tree sees a different subset of examples. On top of that, at each split the algorithm randomly selects a subset of features, so trees explore different predictors. These two sources of randomness decorrelate the trees. When we aggregate them — by averag"

    Yuexiang Y. - "A Random Forest works by building an ensemble of decision trees, each trained on a slightly different version of the data. The key mechanism is bagging: for each tree, we sample the training data with replacement (bootstrapping), so every tree sees a different subset of examples. On top of that, at each split the algorithm randomly selects a subset of features, so trees explore different predictors. These two sources of randomness decorrelate the trees. When we aggregate them — by averag"See full answer

    Data Scientist
    Technical
  • System Design
  • Salesforce logoAsked at Salesforce 
    2 answers

    "Bitshift the number to the right and keep track of the 1's you encounter. If you bitshift it completely and only encounter one 1, it is a power of two."

    Nils G. - "Bitshift the number to the right and keep track of the 1's you encounter. If you bitshift it completely and only encounter one 1, it is a power of two."See full answer

    Software Engineer
    Data Structures & Algorithms
    +1 more
  • DoorDash logoAsked at DoorDash 
    Add answer
    Software Engineer
    Behavioral
  • Cognizant logoAsked at Cognizant 
    2 answers

    "My experience with JavaScript is extensive and grounded in a deep understanding of both the language itself and the ecosystems built around it. I can work with modern JavaScript (ES6 and beyond), including concepts like arrow functions, destructuring, modules, promises, and async/await. I’m well-versed in core language features such as closures, the event loop, hoisting, scope, and prototype inheritance. Additionally, I can assist with both front-end and back-end development using popular framew"

    Komal K. - "My experience with JavaScript is extensive and grounded in a deep understanding of both the language itself and the ecosystems built around it. I can work with modern JavaScript (ES6 and beyond), including concepts like arrow functions, destructuring, modules, promises, and async/await. I’m well-versed in core language features such as closures, the event loop, hoisting, scope, and prototype inheritance. Additionally, I can assist with both front-end and back-end development using popular framew"See full answer

    Software Engineer
    Frontend Engineer
  • 🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.

  • Anthropic logoAsked at Anthropic 
    Add answer
    Software Engineer
    Behavioral
    +1 more
  • Software Engineer
    System Design
    +1 more
  • Apple logoAsked at Apple 
    1 answer

    "A doubly linked list is like a train where the engine is its head, and the compartments doors are interconnected, you can travel though them. The last compartment is the tail and is not connected with anything. Following is a visual: Head C1 C2 C3....Cn Tail Pseudocode: **class Node: Data pointer next pointer prev End class DLL = NULL //pointer to list insertion: if DLL is NULL: head = new Node() DLL = head DLL.prev = NU"

    Rasika D. - "A doubly linked list is like a train where the engine is its head, and the compartments doors are interconnected, you can travel though them. The last compartment is the tail and is not connected with anything. Following is a visual: Head C1 C2 C3....Cn Tail Pseudocode: **class Node: Data pointer next pointer prev End class DLL = NULL //pointer to list insertion: if DLL is NULL: head = new Node() DLL = head DLL.prev = NU"See full answer

    Software Engineer
    Data Structures & Algorithms
    +2 more
  • Intuit logoAsked at Intuit 
    1 answer

    "did well but messed up dequeue"

    Shivani N. - "did well but messed up dequeue"See full answer

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

    "Function that transforms each elements in a collection and returns new collection with transformed elements"

    Susmita S. - "Function that transforms each elements in a collection and returns new collection with transformed elements"See full answer

    Software Engineer
    Data Structures & Algorithms
    +1 more
  • 2 answers

    "ArrayList allows constant time access (O(1)) to elements using their index because it uses a dynamic array internally, whereas LinkedList requires traversal from the head node, resulting in linear time complexity (O(n))."

    Aziz V. - "ArrayList allows constant time access (O(1)) to elements using their index because it uses a dynamic array internally, whereas LinkedList requires traversal from the head node, resulting in linear time complexity (O(n))."See full answer

    Software Engineer
    Data Structures & Algorithms
    +1 more
  • Amazon logoAsked at Amazon 
    Add answer
    Product Manager
  • "1. Assessment of Current Applications Architecture Review: Examine the underlying architecture of both applications. The 10-year-old application might be based on outdated technology, which could pose challenges in terms of scalability, performance, and maintainability. The 3-year-old application, on the other hand, might use more modern technologies, making it more adaptable to future needs. Codebase Quality: Assess the quality, structure, and documentation of the codebase."

    Sushil K. - "1. Assessment of Current Applications Architecture Review: Examine the underlying architecture of both applications. The 10-year-old application might be based on outdated technology, which could pose challenges in terms of scalability, performance, and maintainability. The 3-year-old application, on the other hand, might use more modern technologies, making it more adaptable to future needs. Codebase Quality: Assess the quality, structure, and documentation of the codebase."See full answer

    Product Designer
    Product Design
    +1 more
  • Nubank logoAsked at Nubank 
    Add answer
    Product Manager
    Product Design
  • McKinsey logoAsked at McKinsey 
    1 answer

    "Spoiled food In a process I improved, I streamlined how tasks were assigned to reduce delays and confusion."

    Ruth A. - "Spoiled food In a process I improved, I streamlined how tasks were assigned to reduce delays and confusion."See full answer

    Data Scientist
    Analytical
    +1 more
  • Disney logoAsked at Disney 
    Add answer
    Product Designer
    Product Design
  • Product Manager
    Analytical
    +1 more
  • Adobe logoAsked at Adobe 
    Add answer
    Machine Learning Engineer
    Data Structures & Algorithms
    +2 more
  • Nike logoAsked at Nike 
    Add answer
    Engineering Manager
    Behavioral
  • Anthropic logoAsked at Anthropic 
    Add answer
    Machine Learning Engineer
    Artificial Intelligence
    +2 more
Showing 3661-3680 of 4415