cswork / libraryOpen practice workspace

READ. UNDERSTAND. PRACTICE.

Interview questions

Explore algorithm tutorials, coding and system design questions, interview experiences, and computer science study guides.

1,290 resources · Page 35 of 54

  1. Interview questions · Roblox

    Find the Longest Safe Straight-Line Movement on a Laser Grid

    Find a robot's longest safe straight-line movement on a laser-covered grid, where only the initial cell is protected and laser rows and columns are blocked.

  2. Interview questions · Adobe

    Find the Lowest Common Ancestor Only When Both Nodes Exist

    Return the lowest common ancestor of two target values only when both are present in a potentially skewed binary tree. Handle absent targets, equal targets, empty input, and cases where one target is the ancestor.

  3. Interview questions · Salesforce

    Find the Lowest Common Ancestor Using Parent Pointers

    Find the lowest common ancestor of two nodes in an acyclic forest represented only by parent pointers. Return the node itself for equal inputs and minus one when the nodes belong to different trees.

  4. Interview questions · Apple

    Find top-k frequent elements efficiently

    This question evaluates algorithmic and data-structure skills, focusing on frequency counting, heap-based selection, streaming updates, and time/space complexity analysis within the Coding & Algorithms domain.

  5. Interview questions · Meta

    Find top-K frequent elements in a stream

    This question evaluates understanding of streaming algorithms, frequency estimation, and data-structure-based top-K selection, emphasizing space/time and accuracy trade-offs when processing large or unbounded data.

  6. Interview questions · TikTok

    Find top-k rated nodes via traversal

    This question evaluates understanding of graph traversal combined with streaming top-k selection, testing competencies in graph algorithms, data structure choice (e.g., visited sets and bounded heaps), tie-breaking, and reachable-node enumeration within the Coding & Algorithms domain.

  7. Interview questions · Capital One

    Fix failing tests and refactor code

    This question evaluates a candidate's ability to debug, test, and refactor Python code with attention to state management, mutable default arguments, deterministic unit testing, API design, and type-safety.

  8. Interview questions · Salesforce

    Flatten Nested Objects and Lists into Full Leaf Paths

    Traverse nested maps and lists with a stack, include every parent key and list index, and return deterministically ordered paths to string leaves.

  9. Interview questions · Uber

    Formulate OR model to reduce driver backtracking

    This question evaluates skills in defining a quantitative driver-backtracking metric from GPS and assignment logs, detecting and validating backtracking segments, and formulating constrained optimization models for dispatch and repositioning, drawing on statistics, operations research, and stochastic optimization.

  10. Interview questions · Pinduoduo

    Generate a Spiral Matrix

    Generate an n by n matrix filled with the integers from 1 through n squared in clockwise spiral order, following the cited problem.

  11. Interview questions · TikTok

    Generate all safe queen placements on board

    This question evaluates algorithm design for constraint-satisfaction problems, testing skills in search, recursion, backtracking, combinatorics, and state-space pruning.

  12. Interview questions · Bloomberg

    Generate all strings by expanding wildcards

    This question evaluates algorithmic string manipulation and combinatorial enumeration skills, focusing on handling wildcard characters and generating all possible binary outcomes from a pattern.

  13. Interview questions · Coinbase

    Generate constrained NFT metadata

    Generate constrained NFT metadata evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

  14. Interview questions · Meta

    Generate unique permutations with duplicates

    This question evaluates a candidate's understanding of permutation generation and duplicate handling within algorithm design, testing combinatorial reasoning, correctness proofs, and time/space complexity analysis.

  15. Interview questions · Meta

    Group a tree by vertical columns

    This interview question evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer for Group a tree by vertical columns states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

  16. Interview questions · DoorDash

    Handle a payment-service incident with resource spikes

    Handle a payment-service incident with resource spikes evaluates behavioral evidence, ownership, communication, trade-offs, and measurable outcomes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

  17. Interview questions · UiPath

    Handle Ambiguity in the Workplace

    This interview question evaluates behavioral evidence, ownership, communication, trade-offs, and measurable outcomes in a realistic interview setting. A strong answer for Handle Ambiguity in the Workplace states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

  18. Interview questions · Capital One

    Handle an irate passenger after flight delay

    This question evaluates crisis communication, conflict de-escalation, resource-constrained decision-making, cross-functional coordination, and metrics definition for operational recovery, presented for a Data Scientist and categorized under Behavioral & Leadership.

  19. Interview questions · Meta

    Handle conflict and missed delivery deadlines

    This question evaluates interpersonal competencies such as conflict resolution, relationship management, communication, ownership, and accountability in scenarios involving missed delivery deadlines and team dynamics.

  20. Interview questions · Walmart Labs

    Handle conflict and motivate engineering teams

    This question evaluates leadership competencies including conflict resolution, stakeholder management, and team motivation, emphasizing interpersonal decision-making and balancing technical quality with timelines.

  21. Interview questions · DoorDash

    Handle conflict and time-pressured decision

    This question evaluates decision-making under time pressure, stakeholder management, risk communication, prioritization of success metrics, and rapid evidence synthesis for a Data Scientist role.

  22. Interview questions · Meta

    Handle conflict and urgent shifting priorities

    This question evaluates interpersonal and leadership competencies for a data scientist, including conflict resolution, influencing stakeholders with analytics, cross-functional collaboration, and adaptive prioritization within the behavioral & leadership domain.

  23. Interview questions · Apple

    Handle conflict, priorities, and harsh clients

    This English summary evaluates conflict resolution, stakeholder management, technical judgment in model selection, risk assessment, escalation, and documentation skills within a Data Scientist role, testing Behavioral & Leadership competencies in a cross-functional, client-facing context.

  24. Interview questions · Scale AI

    Handle customer engagement and manager-rating questions

    This question evaluates stakeholder management, leadership principles, conflict-resolution skills, and self-awareness, emphasizing interpersonal communication, influence, and accountability.