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

  1. Coding questions · Akuna Capital

    Count subarrays equal to target

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

  2. Coding questions · Capital One

    Count Subarrays Whose Step-by-Step Changes Match an Up, Flat, Down Pattern

    Count the fixed-length windows of an integer array whose consecutive rises, equal steps, and drops follow a given pattern of 1, 0, and -1 values, counting overlapping matches separately. Tests turning a comparison rule into an exact window check with correct index bounds.

  3. Coding questions · Uber

    Count subarrays with ≥k identical pairs

    This question evaluates proficiency in array algorithms, frequency-based counting and combinatorial reasoning for identifying equal-element pairs within contiguous subarrays.

  4. Coding questions · Bloomberg

    Count subarrays with product under target

    This question evaluates algorithmic problem-solving skills for array manipulation with multiplicative constraints, specifically reasoning about subarray products and boundary behaviors; it belongs to the Coding & Algorithms domain and emphasizes practical application of efficient, linear-time algorithm design rather than purely conceptual theory.

  5. Coding questions · J.P. Morgan

    Count substrings and generate TOC

    This question evaluates string processing, pattern recognition, and parsing competencies—covering counting and grouping in binary substrings and structured line parsing and numbering for a table of contents—within the Coding & Algorithms domain.

  6. Coding questions · LinkedIn

    Count the Maximum Number of Collinear Points

    Find the most points on one line using exact coordinate relationships, including repeated points and vertical or horizontal lines.

  7. Coding questions · IBM

    Count Tree Vertices with Pythagorean Distances

    Count tree vertices whose positive distances to three fixed vertices form a Pythagorean triple, including distance ordering and large-tree edge cases.

  8. Coding questions · Meta

    Count unconnected posts and reactions

    This question evaluates proficiency in SQL data manipulation—specifically joins, aggregations, time-window filtering, and counting/averaging event-driven metrics—within the Data Manipulation (SQL/Python) domain.

  9. Coding questions · Robinhood

    Count Unique Dependents in a Referral DAG

    Count unique direct and transitive dependents in a DAG, preserving edge direction, ignoring unknown endpoints, and handling shared descendants without double-counting.

  10. Coding questions · Amazon

    Count unique Morse-code word transformations

    This question evaluates a candidate's ability to implement string transformations based on a fixed character-to-code mapping and to identify distinct results, testing competencies in encoding, string manipulation, and deduplication.

  11. Coding questions · Meta

    Count uniques in sparse sorted array

    This question evaluates proficiency in algorithm design and complexity analysis, focusing on reasoning about how a sorted array with very few distinct values can be handled to count unique elements.

  12. Coding questions · Worldquant

    Count Unordered Combinations of Unlimited Coins

    Count distinct ways to reach a target with unlimited coins, treating different orders of the same denominations as one combination.

  13. Coding questions · Mixpanel

    Count Users Active After Signup

    Count distinct users with at least one event on or after signup using a PostgreSQL query.

  14. Coding questions · Coinbase

    Count users over n connections

    This interview question evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer for Count users over n connections states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

  15. Coding questions · Mixpanel

    Count Users Retained on Day Seven

    Count users active on the seventh calendar day after signup, without double-counting repeated events.

  16. Coding questions · Ge

    Count visible people to the right

    This question evaluates algorithmic problem-solving with arrays and visibility relations, assessing competency in array traversal, handling of relative ordering constraints, and designing time- and space-efficient approaches.

  17. Coding questions · Expedia

    Count vowel-only substrings with all vowels

    This interview question evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer for Count vowel-only substrings with all vowels states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

  18. Coding questions · Squarepoint

    Count Ways to Reach Step n With a Given Set of Step Sizes

    From a Squarepoint technical screen: count the ordered sequences of moves that climb exactly n stairs when every move uses a step size from a given set. It tests careful counting of ordered choices, targets that cannot be reached, and the interviewer's follow-up about reducing the extra space the solution uses.

  19. Coding questions · Databricks

    Count weekly customers with ≥$1000 YTD spend

    Databricks data-scientist technical-screen question: given a transactions table, compute for each calendar week the number of distinct customers whose year-to-date spend reaches at least $1000, resetting YTD each January and supporting multiple years. It tests running-total window functions, per-customer-then-threshold logic, Monday-week bucketing, and distinct counts in SQL or pandas.

  20. Coding questions · PayPal

    Count Word Frequency and Print Top Three Words

    This question evaluates proficiency in basic Python programming, string/text processing, frequency counting and sorting algorithms, reflecting core competencies for data manipulation tasks.

  21. Coding questions · DoorDash

    Courier Pay From Overlapping Deliveries With Peak-Window Multipliers

    A coding question that computes a delivery courier's total pay from a time-ordered log of order accept and deliver events, where every minute pays per order being carried. The follow-up adds sorted peak windows with a pay multiplier and expects a linear pass over both pre-sorted inputs, testing interval boundaries and overlapping orders.

  22. Coding questions · American

    Cover the Most Points with an Axis-Aligned Rectangle of Bounded Perimeter

    Maximize point coverage with an axis-aligned rectangle under a perimeter budget, including boundary points and repeated coordinates.

  23. Coding questions · CVS Health

    Create and query an e-commerce schema

    This question evaluates SQL schema design and data manipulation competencies, including defining PostgreSQL table types and constraints, inserting exact datasets, composing aggregate and join queries with date-based filters, and performing DML updates with verification.

  24. Coding questions · Amazon

    Create Country-Level Spend Report Using Pandas

    This question evaluates proficiency in data manipulation using pandas, including relational joins and aggregation to produce country-level summary statistics like totals and averages.