cswork / libraryOpen practice workspace

READ. UNDERSTAND. PRACTICE.

Coding questions

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

1,899 resources · Page 19 of 80

  1. Coding questions · Microsoft

    Convert a Hexadecimal Address to Dotted IPv4

    Convert an eight-digit hexadecimal address to network-order dotted IPv4 with strict validation, optional prefixes, and correct high-bit handling.

  2. Coding questions · Uber

    Convert a PDF to a CDF

    This question evaluates understanding of probability theory, numerical methods, and algorithmic implementation for converting probability density functions into cumulative distribution functions, addressing analytic versus sampled PDFs along with support, normalization, and monotonicity requirements.

  3. Coding questions · Meta

    Convert BST to sorted doubly list

    This question evaluates understanding of binary search tree properties, in-order traversal, in-place pointer manipulation, and algorithmic complexity when converting tree nodes into a sorted doubly linked list.

  4. Coding questions · Point72

    Convert Dates to Calendar Quarter Labels in SQL/Python

    This question evaluates a candidate's ability to perform date/time data transformation and normalization in SQL or Python, focusing on converting raw numeric dates into standardized quarter labels for aggregation and reporting.

  5. Coding questions · Walmart Labs

    Convert Dictionary to DataFrame

    This question evaluates proficiency in Python data manipulation and pandas DataFrame construction, specifically handling nested list structures and aligning rows by identifiers.

  6. Coding questions · Point72

    Convert integer dates to quarters

    This question evaluates date manipulation, validation, and fiscal-calendar conversion skills in both SQL and Python, covering parsing of string and integer inputs, leap-year and invalid-date detection, and computation of fiscal year/quarter offsets in the Data Manipulation (SQL/Python) domain.

  7. Coding questions · Salesforce

    Convert integer to NAF form

    This question evaluates understanding of number representations (Non-Adjacent Form), bit-level optimization, and formal proof techniques for demonstrating minimal Hamming weight, together with algorithmic complexity analysis.

  8. Coding questions · Salesforce

    Convert Integer to Non-Adjacent Form

    Convert Integer to Non-Adjacent Form 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.

  9. Coding questions · Anthropic

    Convert Sampled Call Stacks into Start and End Events

    Convert sampled call stacks to inferred start/end events using ordered common prefixes, recursive frames, explicit final-open behavior, and last-N history limitations.

  10. Coding questions · Anthropic

    Convert stack samples to trace events

    This question evaluates a candidate's ability to convert chronologically ordered stack samples into start/end trace events, testing stateful stream processing, stack diffing, correct temporal ordering, and frame identity handling in the presence of recursion.

  11. Coding questions · Microsoft

    Count Binary Substrings with Two Equal Blocks

    Count binary substrings with equal numbers of zeros and ones arranged in two consecutive blocks, including overlapping occurrences.

  12. Coding questions · Render

    Count Blocked Rate-Limited Requests

    This question evaluates understanding of rate-limiting logic, sliding-window time-based counting, and data structure design for tracking per-IP and per-(IP, host) request histories.

  13. Coding questions · TikTok

    Count buggy vs non-buggy by employer

    This question evaluates proficiency in SQL data manipulation—particularly conditional aggregation and join semantics—for counting categorized records across related tables in a data science context.

  14. Coding questions · DoorDash

    Count changed nodes in N-ary trees

    This question evaluates understanding of N-ary tree data structures, structural comparison of hierarchical versions, and the ability to reason about time and space complexity when detecting added, deleted, value-changed, or reparented nodes.

  15. Coding questions · DoorDash

    Count clusters covered by dashers

    Count clusters covered by dashers 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.

  16. Coding questions · SoFi

    Count completed car journeys from sensor logs

    This question evaluates stateful event-stream processing and per-entity state management, testing the ability to track and reconcile time-ordered sensor events while handling edge cases like unmatched or spurious events.

  17. Coding questions · Uber

    Count connected delivery zones

    This question evaluates graph traversal and connected-components detection on grids, measuring competence in grid-based algorithms, neighbor connectivity, and algorithmic analysis of time and space complexity.

  18. Coding questions · LinkedIn

    Count connected land components in a grid

    This question evaluates understanding of grid traversal and graph connectivity concepts, focusing on modeling a 2D matrix as adjacency relationships within the coding and algorithms domain.

  19. Coding questions · eBay

    Count Connected Land Regions

    This question evaluates understanding of graph connectivity and grid traversal, specifically the detection of connected components within a 2D matrix. It is commonly asked to assess algorithmic problem-solving, efficiency and handling of matrix-based data structures; it belongs to the Coding & Algorithms domain and tests practical implementation skills alongside conceptual understanding of graph-related complexity under the given input constraints.

  20. Coding questions · Airbnb

    Count Consecutive Positive Integer Sums

    Count representations of a positive integer as one or more consecutive positive integers, including the one-term representation. Derive the arithmetic condition for each sequence length and use a square-root bound rather than testing every possible starting value.

  21. Coding questions · Snapchat

    Count Cross-Group Employee Pairs

    This question evaluates understanding of graph connectivity and component aggregation (often involving disjoint-set concepts) along with combinatorial counting to compute cross-group pairs.

  22. Coding questions · Amazon

    Count Customers Buying Both 'Kindle' and 'Alexa'

    This question evaluates proficiency in relational data manipulation and set-based reasoning, assessing SQL competency such as joins, aggregation, and identifying distinct customers who purchased multiple specified products.

  23. Coding questions · Morgan Stanley

    Count decodings of a digit string

    Count decodings of a digit string 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.

  24. Coding questions · Snapchat

    Count decodings of a numeric string

    This question evaluates dynamic programming and string-processing skills, along with attention to edge-case handling, modular arithmetic for large results, and online algorithm design for streaming input.