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 65 of 80

  1. Coding questions · Microsoft

    Return the k most frequent values in an array with a deterministic tie rule

    Return the k values that occur most often in an integer array, ranked by frequency with ties broken by the smaller value. It tests frequency counting, selecting the top k efficiently and producing a deterministic order when several values tie at the cutoff.

  2. Coding questions · LinkedIn

    Return the K Smallest Pairwise Products of Two Sorted Arrays

    Given two sorted arrays of non-negative integers and an integer k, return the k smallest values among all pairwise products, counted with multiplicity and listed in non-decreasing order. It tests reasoning about ordered search spaces, duplicate products and products beyond the 32-bit range.

  3. Coding questions · Uber

    Return the k Smallest Squares of a Sorted Integer Array in Order

    A coding problem on a sorted integer array that may contain negative numbers, asking for the k smallest squares of its elements in sorted order. It tests exploiting sorted input, reasoning about how squaring reorders negative and positive values, and meeting a logarithmic-plus-k time target.

  4. Coding questions · ByteDance

    Return the Most Frequent Integer with a Stable Tie-Breaker

    Implement a frequency-based selection over a large integer array: return the most common value, using the numerically smallest value to break ties. Preserve the input and return the value itself rather than its count or position.

  5. Coding questions · Robinhood

    Return the Ten Most Frequent Words

    Rank the ten most frequent words with deterministic lexical tie-breaking, handling repeated words and collections with fewer than ten distinct entries.

  6. Coding questions · Capital One

    Return the Top Two Teams by Points, Goal Difference, and Tie Breakers

    Rank competition teams by points, goal difference, goals scored, and an explicit index tie rule, then return the first two team indices.

  7. Coding questions · Meta

    Return top-3 content per category

    This question evaluates the ability to perform grouped top-k selection, deterministic tie-breaking and ordering, and to reason about algorithmic efficiency when manipulating structured datasets in the Data Manipulation (SQL/Python) domain for a Data Engineer role.

  8. Coding questions · Netflix

    Return valid task order from prerequisites

    This question evaluates proficiency in graph algorithms, notably topological sorting and cycle detection, as well as algorithmic complexity analysis and handling of dependency constraints.

  9. Coding questions · Voleon

    Return Words in Repeated Anagram Groups

    Return all input occurrences belonging to repeated anagram groups, preserving order and duplicates with multiplicity-aware letter-count signatures.

  10. Coding questions · Microsoft

    Reverse linked list in fixed-size groups

    This question evaluates proficiency with singly linked list manipulation, pointer/reference management, in-place group operations, and complexity reasoning including time and constant extra space.

  11. Coding questions · Meta

    Reverse sublist between equal-value nodes

    This question evaluates linked-list manipulation and pointer-management skills, focusing on reversing an in-place sublist between two nodes with equal values while respecting O(n) time and O(1) extra space constraints.

  12. Coding questions · ByteDance

    Reverse Words While Preserving Spaces

    This question evaluates proficiency in string manipulation, tokenization, whitespace handling, and careful edge-case reasoning when reversing word order while either normalizing or preserving space patterns.

  13. Coding questions · Airbnb

    Review Python geodata code

    This question evaluates proficiency in Python code review and geolocation data-processing, including competencies in readability, correctness, performance optimization, and architectural scalability.

  14. Coding questions · Uber

    Robot Grid Route with Charging Cells: Fewest Charges, Then Battery, Then Moves

    A grid pathfinding problem in which a robot travels from a start cell to a destination through open, blocked and charging cells, spending one battery unit per move and refilling at chargers. The best route is ranked by fewest charging stops, then smallest required battery capacity, then fewest moves.

  15. Coding questions · Apple

    Rotate a Matrix In Place

    This question evaluates proficiency in in-place matrix and array manipulation, spatial data transformation, and reasoning about time and space complexity.

  16. Coding questions · Sig

    Rotate a Square Matrix Clockwise While Both Diagonals Stay Fixed

    Rotate every element of a square matrix that lies off both diagonals by 90 degrees clockwise a given number of times, leaving the main-diagonal and anti-diagonal values in place. It tests precise index mapping, handling of odd and even matrix sizes, and bug-free simulation under timed assessment conditions.

  17. Coding questions · Capital One

    Rotate matrix and find max lamp coverage

    This question evaluates array and matrix manipulation, in-place algorithm design, interval processing (sweep-line) and interval merging skills, testing competencies in algorithm design, complexity analysis, and robust edge-case reasoning within the Coding & Algorithms domain.

  18. Coding questions · Abridge

    Run-Length Compress a Character List With Multi-Digit Counts

    From an Abridge online assessment: run-length compress a list of characters, writing each run of equal adjacent characters as the character followed by its length, with lengths of 10 or more split into separate digit characters. It tests careful run handling and the in-place, constant-space form of the problem.

  19. Coding questions · Upstart

    Scale Recipe Quantities Without Changing Product Descriptions

    Multiply only the leading quantity in each ingredient line, preserving recipe order, product wording, and numbers inside descriptions.

  20. Coding questions · Snowflake

    Schedule dependent services with layered startup

    This question evaluates understanding of graph algorithms (topological ordering and cycle detection), layered dependency extraction, and parallel scheduling under resource constraints, testing algorithm design and complexity reasoning in the Coding & Algorithms domain.

  21. Coding questions · Scale AI

    Schedule Ready Tasks by Deadline

    This question evaluates understanding of task scheduling and dependency management in directed acyclic graphs, along with algorithmic selection and data-structure-based optimization for repeated minimum-deadline retrieval.

  22. Coding questions · TikTok

    Schedule Seller Tasks with Tier-Weighted Round Robin

    Schedule arriving seller tasks by per-seller priority and FIFO order while rotating fairly across sellers. The exercise adds tier weights, seller activation and reactivation, empty queues, null processing results, and persistent turn state across interleaved operations.

  23. Coding questions · Amazon

    Search a Folder Hierarchy with Extensible Document Filters

    Search a folder hierarchy with strict size and optional type filters, deterministic traversal, extensible predicate composition, and meaningful boundary tests.

  24. Coding questions · Goldman Sachs

    Search for a Target in a Matrix Sorted by Rows and Columns

    Decide whether a target value appears in an integer matrix whose rows and columns are each sorted in non-decreasing order. It tests how well a candidate exploits ordering in two directions to avoid scanning every cell, and how carefully they handle duplicates, single-row inputs, and boundary values.