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

  1. Coding questions · Citadel

    Maximize Stock Trading Profits Using Dynamic Programming

    This question evaluates proficiency in dynamic programming, state modeling for sequential decision problems, and algorithmic optimization related to constrained transaction planning.

  2. Coding questions · TikTok

    Maximize sum with no adjacent elements

    This question evaluates understanding of dynamic programming and array-based optimization, assessing competency in designing algorithms that maximize a sum under adjacency constraints.

  3. Coding questions · Amazon

    Maximize the Bitwise AND of K Elements After Spending an Increment Budget

    Given an array, a count k and a total budget of increments, raise elements so that the bitwise AND of some k chosen elements is as large as possible, and return that value. The problem tests bit manipulation, careful accounting of a shared budget, and an efficient solution for inputs of up to 100,000 elements.

  4. Coding questions · Amazon

    Maximize the number of binary strings chosen under zero and one budgets

    Given a list of binary strings and separate limits on the total number of zeros and ones, find the largest number of strings that can be chosen together without exceeding either limit. Tests optimization under two simultaneous resource limits, moving from brute force to an efficient method, and complexity analysis.

  5. Coding questions · Airbnb

    Maximize tokens from nested crates

    This question evaluates proficiency with graph-based algorithms, state management, and data structure selection for handling dependencies, cycles, duplicates, and dynamic discovery in resource-collection scenarios.

  6. Coding questions · Amazon

    Maximize total bandwidth of data channel pairs

    This question evaluates a candidate's ability to design efficient algorithms for combinatorial optimization and selection under constraints, testing understanding of array manipulation, ordered pair counting, and aggregation of bandwidth sums.

  7. Coding questions · Meta

    Maximize vacation streak with PTO

    This question evaluates proficiency in algorithmic problem-solving with arrays, specifically reasoning about consecutive subarray computations, linear-time scanning techniques, and the ability to analyze time and space complexity.

  8. Coding questions · ByteDance

    Maximize watch time under adjacency constraint

    This Coding & Algorithms question for a Data Engineer role evaluates dynamic programming and sequence-optimization skills by requiring selection of a subsequence under a pairwise adjacency constraint on video durations, at a moderate-to-advanced algorithmic abstraction level.

  9. Coding questions · Reevo

    Maximize weighted sum with disjoint adjacent swaps

    This question evaluates a candidate's competency in array manipulation, combinatorial optimization, and algorithmic reasoning about how local adjacent swaps affect a weighted global objective.

  10. Coding questions · Oracle

    Maximum of Fixed-Window Minimums

    Find the maximum among all fixed-length sliding-window minima, handling negative values, duplicates, and boundary window sizes with a linear-time approach.

  11. Coding questions · Xiaohongshu

    Maximum Profit from One Stock Purchase and a Later Sale

    Given one stock's price on each of several consecutive days, compute the maximum profit from buying one share and selling it on a strictly later day, or zero if no trade makes money. It tests efficient reasoning over an array under large input bounds and careful handling of edge cases such as falling prices or a single day.

  12. Coding questions · Point72

    Maximum Profit with Unlimited Stock Transactions

    Given daily stock prices, compute the maximum profit from any number of buy-and-sell transactions. Work through the function contract, boundary cases, correctness argument, and time and space complexity expected in a production-quality solution.

  13. Coding questions · Microsoft

    Maximum Subarray Sum of an Array Repeated K Times

    A coding question that first asks for the largest sum of a non-empty contiguous subarray, then for the same quantity when the array is written out k times back to back. It tests subarray reasoning across copy boundaries, all-negative inputs, and sums that overflow 32-bit integers.

  14. Coding questions · Hudson

    Maximum Sum of a Filled Diamond That Fits Inside an Integer Grid

    Online assessment coding problem: given an integer grid, find the largest sum over every filled diamond, defined by a center cell and a Manhattan-distance radius, that fits entirely inside the grid. It tests careful boundary handling and computing many overlapping region sums efficiently.

  15. Coding questions · Walmart Labs

    Maximum Sum of Non-Adjacent Values in a Row

    A coding problem that asks for the largest total obtainable from a row of non-negative values when no two chosen positions may be adjacent. It tests reasoning about take-or-skip choices, edge cases such as empty and single-element rows, and a solution fast enough for rows of up to 100,000 values.

  16. Coding questions · Virtu

    Maximum Total Height of Mountain-Shaped Towers Under Per-Plot Height Caps

    Each plot in a row has a maximum allowed tower height. Choose tower heights that rise to a single peak and then fall, never exceeding any cap, so that the total height is as large as possible. Tests reasoning about the peak position, per-position caps, and 64-bit sums.

  17. Coding questions · DoorDash

    Measure Customers Ordering from Bottom-Quartile Restaurants

    A PostgreSQL interview problem about measuring customers who order from bottom-quartile restaurants. Candidates must define the restaurant population and quartile grain, handle ties and sparse activity, then calculate a distinct-customer share with the correct denominator.

  18. Coding questions · DoorDash

    Measure Late Deliveries and Identify Top Delayed Restaurants

    This question evaluates proficiency in time-based aggregations, timestamp arithmetic, percentage calculations, and ranking/grouping using SQL or equivalent Python data-manipulation libraries.

  19. Coding questions · LinkedIn

    Measure LRU Cache Hits and Misses for an Access Workload

    Simulate an LRU cache with hit and miss counters, correct recency updates, bounded capacity, and explicit empty-workload behavior.

  20. Coding questions · Shopify

    Measure Pirate-Theme Usage and Revenue Growth Over Time

    This question evaluates the ability to design time-based usage metrics and compute monthly revenue through data manipulation using SQL or Python, focusing on aggregating event and transaction records by calendar month.

  21. Coding questions · Electronic Arts

    Merge Accounts by Shared Email

    Merge account records connected directly or transitively by shared email addresses. Deduplicate and sort each person's emails while handling up to 200,000 email occurrences with an efficient graph or disjoint-set approach.

  22. Coding questions · Capital One

    Merge ad CSVs and compute CTR

    This question evaluates SQL data manipulation competencies such as cleaning and merging CSVs, forward-filling missing dates, correct multi-table joins without duplication, use of window functions, time-windowed aggregations, and computation of click-through rate (CTR).

  23. Coding questions · Boston Consulting Group

    Merge and Clean Customer Order Data for Analysis

    This question evaluates proficiency in data manipulation with pandas and SQL concepts, focusing on dataset merging, missing-value handling, and computing derived aggregate columns such as total_spent.

  24. Coding questions · Boston Consulting Group

    Merge and Concatenate Inconsistent Order Files with Pandas

    This question evaluates proficiency with pandas-based data manipulation, including schema alignment, column renaming, type casting, and vertical concatenation when merging CSV files.