Capital One Coding Interview Questions
41 coding questions reported by candidates who interviewed at Capital One, out of 54 Capital One questions we track. They average 2.4/5 difficulty (easy). Most common topics: Simulation, Array, String, Counting. 31 were reported asked within the last year, most recently in October 2026.
Practice Capital One questions →Difficulty
- 1/5 — warm-up8
- 2/5 — easy12
- 3/5 — medium19
- 4/5 — hard2
Asked for SWE (40), MLE (6), DS (1), RS (1)
Reported Capital One coding questions
Evaluate arithmetic equations from parallel arrays
1/5An easy warm-up coding task on validating many small sums and differences stored position by position across several lists. Each position carries an operator symbol that decides how its numbers combine before being compared with an expected value. The point is clean single-pass iteration and deciding how unexpected operator symbols are reported.
asked October 2026CodingArraySimulationRotate Matrix Over Diagonals
3/5Apply a diagonal reflection to a square matrix a given number of times and return the result. This Capital One question is mostly about noticing that the operation repeats: reflections compose, so a large number of turns reduces to a small remainder rather than a long loop. You will work out the cycle length, implement one reflection cleanly in place or into a copy, and confirm which cells never move. Subscribers get the complete problem and the reference solution.
asked October 2026MatrixArraySimulationCount arithmetic triplets in a multiset after each query
3/5A data-structure exercise where a collection of integers changes over time and, after every change, you must report how many evenly spaced groups of three it contains. Repeated values multiply the count, and one kind of change wipes out every copy of a value. The goal is updating the answer incrementally from local information rather than rescanning everything.
asked October 2026CodingHashingCountingBranch with the most pushed files from a command log
1/5A short simulation exercise built on a text log that mimics a source-control session. You replay the entries in order while tracking which line of work is active and tally what lands on each one, then name the winner. The interesting parts are choosing a tie rule, handling logs that never record any contribution, and rejecting malformed sequences.
asked October 2026CodingHashingSimulationMatrix Border Sort and Clockwise Fill
3/5Tackle this engaging matrix manipulation puzzle reported during Capital One software engineering interviews. This challenge evaluates your proficiency with multi-dimensional array traversal, boundary extraction, and precise coordinate mapping. You will need to carefully handle concentric layers and reinsert elements in a specific rotational direction without losing data integrity. Unlock the detailed problem statement, edge-case analysis, and fully implemented solution by securing a subscription.
asked July 2026MatrixSimulationGridDeal Out Win, Draw, Loss Results in Repeating Rounds
2/5A string coding question about regrouping a sequence of three kinds of outcomes into a repeating pattern. The tricky part is what happens once one kind is used up while others remain, and doing it without repeatedly searching and deleting from the text.
asked July 2026CodingStringCountingReorder a String Alternating From Both Ends
2/5A short string-manipulation coding question about building a new ordering of a text from its two ends. It checks that you handle both even and odd lengths, avoid duplicating or dropping the middle character, and keep the work linear even for very long inputs.
asked July 2026CodingStringTwo PointersDynamic Two-Array Pair Sum Queries
3/5Answer repeated questions about how many cross-array pairs reach a target sum, while one of the arrays keeps changing underneath you. This Capital One assessment is about maintaining a structure rather than recomputing: a frequency map over one array turns each count query into a scan of the other, and each update is a small adjustment to that map. You will keep the map in step with the updates and reason about which array should be the indexed one. A subscription unlocks the full problem and the reference solution.
asked June 2026HashmapArraySimulationLongest Same-Character Run
1/5This beginner-friendly string manipulation challenge, commonly encountered in Capital One technical assessments, asks programmers to discover the longest contiguous sequence of identical letters within a given text. When multiple character sequences share the maximum possible span, the algorithm must prioritize the instance appearing furthest to the right before formatting the result as a character-length pair. This puzzle evaluates foundational string traversal, conditional logic, and tracking techniques. Unlock the comprehensive problem statement, edge cases, and an optimized solution by purchasing a subscription.
asked May 2026StringTwo PointerCodesignalLaser Grid Robot Max Safe Run
2/5Encountered in a Capital One interview, this grid navigation puzzle asks you to compute the maximum distance a robot can travel in a straight path before encountering a hazard created by intersecting laser beams. You need to carefully account for protected starting zones and grid boundaries while analyzing board coordinates. This scenario assesses your ability to handle matrix boundaries, spatial reasoning, and condition checking efficiently. Unlock the full problem details and expert model solution with a paid subscription.
asked May 2026GridSimulationArrayEven Digit Count
1/5This beginner-friendly coding challenge, frequently featured in Capital One technical interviews, tests your ability to iterate through collections and process numerical data. You will be asked to evaluate a sequence of numeric values and determine how many items meet a specific length criterion regarding their digit count. This problem is excellent for practicing basic arithmetic operations and string conversion techniques in a timed setting. Access to the complete problem breakdown and optimal code solution requires a subscription.
asked May 2026ArrayMathStringHouse Segments After Deletions
3/5Featured in Capital One technical interviews, this problem asks you to track the number of contiguous property segments remaining on a number line after a sequence of destruction events. As specific locations are systematically removed, you must efficiently calculate how the overall grouping count changes at each step. This challenge evaluates your ability to design efficient data structures and manage dynamic connectivity or interval merging operations. Unlock the comprehensive problem details and optimal model solution by acquiring a subscription.
asked May 2026SimulationSetIntervalsTetris-Style Figure Placement
3/5Drop a sequence of fixed shapes onto a grid, each at the earliest free position scanning by row and then column, and label the cells it occupies. This Capital One assessment is deliberately heavy on code rather than cleverness: five shape definitions, a placement scan, and a collision check. You will represent each shape as offsets, test a candidate position cheaply, and decide what happens when a shape no longer fits anywhere. Subscribers can read the full problem and the reference solution.
asked April 2026GridSimulationOnline AssessmentBeautify Houses to Strictly Monotone
3/5Explore an array transformation puzzle recently asked during interviews at Capital One, focused on finding the fewest upward adjustments needed to shape a sequence into a strictly progressive or regressive pattern. You will need to analyze numerical relationships and calculate optimal modification counts under strict architectural rules. This task assesses your greedy algorithmic thinking and ability to evaluate multiple target states efficiently. Access the full problem statement and optimized code implementation with a paid subscription.
asked April 2026GreedyMathArrayRepeated Leading-Nonzero Prefix Subtraction
4/5Reported from Capital One technical screenings, this algorithmic challenge centers on simulating a repetitive array transformation process until all elements reach zero. You must iteratively locate active leading elements and conditionally modify subsequent entries while tracking cumulative totals. This task evaluates your simulation logic, array manipulation efficiency, and conditional boundary management. Get the full problem breakdown, optimization strategies, and a complete tested solution by subscribing.
asked April 2026ArraySimulationPrefix MinimumOdd Zero-Digit Count
1/5String manipulation and digit extraction form the core of foundational coding evaluations, exemplified by this reported Capital One interview question. The challenge involves examining a collection of numeric values to determine how frequently specific character patterns appear within their decimal representations, applying unique parity conditions to tally the final result. This exercise tests your ability to handle basic arithmetic conversions, conditional logic, and edge cases gracefully. It serves as a great warm-up for validating fundamental programming proficiency. The complete problem statement and detailed model solution require a subscription.
asked April 2026ArrayMathDigitsPair Concatenation to Target
2/5Featured in Capital One interviews, this challenge asks you to find how many ordered index combinations from a list of integers form a specific target when their string representations are joined together. You need to develop an approach that efficiently handles large datasets without timing out due to quadratic complexity. This problem evaluates your string manipulation and hash-based lookup skills. Access the full question details and verified solution by securing a subscription.
asked April 2026StringHashmapCodesignalWarehouse Round-Robin Package Allocation
3/5Simulate complex state management and sequential routing logic with this warehouse allocation problem featured in Capital One interviews. The exercise tests your ability to track fluctuating capacities, process dynamic closure logs, and implement round-robin distribution rules over custom data structures. You will enhance your simulation design skills and learn how to handle state resets efficiently during linear scans. Access the complete problem specification, simulation patterns, and optimal model solution with a paid subscription.
asked April 2026SimulationSchedulingArrayCount Symmetric Length-3 Substrings
1/5This Capital One interview question asks you to scan a text sequence and tally how many three-character segments feature matching bookend letters, ignoring capitalization while disregarding the middle character entirely. It is designed to test your baseline text-processing capabilities, looping controls, and case-insensitivity handling in a straightforward setting. Gain full access to the complete challenge details and our optimized reference solution through a paid subscription.
asked April 2026StringCase InsensitiveCountingBattery Usage with Recharge Cycles
3/5Featured in recent Capital One technical interviews, this simulation problem models energy management for a device operating over a prolonged period using a pool of interchangeable batteries with varying capacities and recharge durations. The core task is to track power depletion and replenishment cycles to determine the minimum number of swaps needed, or whether the target runtime is entirely unachievable. It tests your capability to design priority queues and manage discrete event simulations. The full challenge description and expert implementation details require a subscription.
asked February 2026SimulationHeapSchedulingPrint All Root-to-Leaf Binary Tree Paths
2/5In this tree traversal challenge reported from Capital One, candidates must explore hierarchical structures to discover every valid path from the root node down to the leaves. The exercise tests your grasp of recursive traversal strategies, state accumulation, and orderly result formatting following pre-order conventions. Handling edge cases such as sparse or unbalanced trees is essential for passing the evaluation. To examine the complete problem guidelines and the reference implementation, a paid subscription is necessary.
asked February 2026TreeDFSRecursionLunar Phase State Lookup
2/5This date-arithmetic interview puzzle, reported at Capital One, challenges you to determine cyclical lunar phases based on a calendar year's starting condition and specific temporal targets. By utilizing repeating seasonal intervals and a fixed eight-day lunar cycle, you must write a lookup function that accurately maps any given date to its corresponding celestial state. The task examines modular arithmetic, calendar manipulation, and edge-case handling for cyclical phenomena. Gain full access to the complete problem instructions and verified code solution with a subscription.
asked January 2026MathSimulationModular ArithmeticA/P Replacement Rounds
3/5Reported as a Capital One technical interview challenge, this puzzle simulates a sequential string transformation game governed by strict priority rules involving character frequency thresholds. The objective is to compute the total number of iterations needed before the sequence reaches a stable terminal state. This problem tests your ability to implement custom simulation logic efficiently while managing trailing patterns. Access to the complete problem instructions and the official model solution requires an active subscription.
asked January 2026SimulationArrayMathMax Value of Valid Expression on a Grid Path
4/5This advanced algorithmic challenge, featured in technical assessments at Capital One, tests grid traversal and dynamic programming strategies. Candidates must navigate a two-dimensional matrix containing digits and operators, moving exclusively downward or rightward to construct valid arithmetic expressions along monotonic paths. The difficulty lies in filtering out malformed mathematical sequences while simultaneously maximizing the evaluated numerical outcome of valid paths. To unlock the complete problem description, complexity analysis, and verified model solution, subscribe to our service today.
asked January 2026Dynamic ProgrammingGridParsingMatrix Commands: Reverse Row, Swap, Rotate
2/5In this Capital One interview exercise, you are tasked with processing a series of structural transformations on a two-dimensional grid in place. The objective requires executing sequential commands involving row reversals, index swaps, and ninety-degree grid rotations while dynamically adjusting boundary dimensions. This problem evaluates your multidimensional array handling and state management under mutating constraints. Reviewing the comprehensive problem description and ideal solution requires a subscription.
asked January 2026MatrixSimulationRotationLinear Regression from Scratch in NumPy
3/5Reported at Capital One, this machine learning coding exercise asks you to construct a foundational predictive model from scratch without relying on external data science libraries. You will implement both analytical matrix solutions and iterative optimization techniques to fit linear data accurately. To examine the complete instructions, mathematical prerequisites, and clean model code, a subscription is required.
asked January 2026Linear RegressionNumPyGradient DescentCount Sawtooth (Alternating Parity) Subarrays
2/5This Capital One interview question requires you to scan an integer array to find contiguous segments where adjacent elements consistently alternate in parity. It measures your competence with linear scanning, subarray bounds tracking, and state-machine logic. Reviewing the complete problem context, sample variations, and the optimal model solution requires a subscription.
asked January 2026ArrayCountingParityReverse Between Vowel-Wrapped Substring Pairs
3/5In this Capital One algorithmic puzzle, candidates must parse a text string to locate specific segments bounded by vowel characters and manipulate their internal sequences. The challenge centers on string parsing, boundary condition handling, and applying transformation rules efficiently under time constraints. It evaluates attention to detail and ability to translate ambiguous requirements into clean code. Reviewing the full problem specifications, edge cases, and optimal solution requires a paid subscription.
asked January 2026Ambiguous SpecString ProcessingTwo PointerMinutes Since Nearest Train Departure
2/5Calculate the elapsed time in minutes between the current time of day and the most recent preceding transit departure from a chronologically ordered timetable. This practical scheduling challenge tests your understanding of time arithmetic, modular wrapping around midnight, and efficient binary search techniques on sorted arrays. Frequently encountered during software engineering interviews at Capital One, it measures your skill in handling edge cases involving daily boundary transitions. To inspect the full problem context, comprehensive test suites, and clean model solution, a subscription is needed.
asked January 2026Binary SearchArrayTime ArithmeticMatch-Three Color Grid Elimination and Gravity
3/5This Capital One interview question evaluates your ability to simulate grid-based transformations and coordinate updates. You will work with a two-dimensional matrix where elements are marked for removal based on neighboring color matches, followed by a gravity phase that shifts remaining items downward. This challenge tests matrix traversal logic, state management, and efficient manipulation of grid data structures. The complete problem statement, comprehensive test cases, and a fully explained model solution require a subscription.
asked January 2026SimulationGridMatrixCode Reading: Data Pipeline Walkthrough
2/5During this Capital One interview round, candidates are evaluated on their ability to comprehend, explain, and improve a multi-stage data processing script. You must verbally walk an interviewer through data parsing, transformation, and aggregation logic while identifying potential bottlenecks, readability flaws, and hidden edge-case bugs. This exercise emphasizes communication skills and code craftsmanship alongside algorithmic awareness. Get immediate access to the full code walkthrough, evaluation criteria, and expert recommendations by subscribing.
asked January 2026Code ReadingCommunicationHand TracingCount Symmetric Length-3 Substrings
1/5Examine a text string to find every three-character sliding window where the initial and concluding characters match each other regardless of letter casing. This beginner-friendly string processing exercise evaluates your fundamental knowledge of indexing, conditional logic, and character manipulation in programming languages. Often utilized in introductory technical evaluations at Capital One, it tests your ability to write clean, readable code with proper boundary checks. Unlocking the complete question details, extensive sample tests, and verified reference solution requires a paid subscription.
StringCase InsensitiveCountingSubtract Product and Sum of Digits of a Large Number
2/5Take a number given as a long string of digits and report the difference between the product of its digits and their sum. This Capital One question is intentionally mechanical and checks two things: that you treat the input as text rather than an integer, and that you notice a single zero digit collapses the product. You will iterate once over the characters, keep both accumulators in step, and reason about the size the product can reach. The complete problem and the reference solution require a subscription.
MathStringImplementationNumber of Substrings with Unique Characters
3/5Count the three-character windows of a string whose letters are all different from each other. This Capital One question is a fixed-size window scan, and the only real decision is whether to recount each window or maintain counts as the window slides. You will handle strings shorter than the window, keep the comparison cheap for a window this small, and state the cost for a very long input. A subscription unlocks the complete problem and the reference solution.
StringsSliding WindowHash TableCheck Whether a Cyclic Shift Can Make the Array Strictly Descending
3/5Decide whether rotating an array right by a stated amount leaves it in strictly decreasing order. This Capital One question is short and worth reading twice, because the ambiguity about whether the rotation amount is given or chosen changes the problem entirely. You will implement the check without materialising the rotated copy, handle strictness at every adjacent pair, and say what an array with repeated values means for the answer. The full problem and the model solution require a subscription.
ArraysSimulationRotationSort Matrix Anti-Diagonals by Their Letter Sequences
3/5Read each anti-diagonal of a letter grid as a string, then reorder the diagonals according to those strings. This Capital One question is index arithmetic first and sorting second: the diagonals are identified by the sum of row and column, and reading direction matters. You will collect each diagonal in the stated order, sort by the resulting strings, and write the grid back so that every cell lands where the new order puts it. The full problem and the reference solution require a subscription.
ArraysMatrixStringsCount Numbers With One Different Digit
3/5Count the pairs of numbers in a list that have equally many digits and differ in exactly one position. This Capital One question rewards a hashing idea over the quadratic comparison: replacing each digit in turn with a wildcard gives keys that collide precisely for the pairs you want. You will group by those masked keys, convert group sizes into pair counts, and avoid counting a pair twice across different masks. A subscription unlocks the complete problem and the reference solution.
ArrayHashingCountingString Array Transformation
2/5Transform a list of strings in two different ways depending on whether each one has an odd or an even length. This Capital One warm-up is trivial to describe and still catches people who mutate the input list or who reverse and lowercase the same entry. You will apply exactly one rule per string, preserve list order, and decide how a single-character string is treated. Subscribers can read the full problem and the reference solution.
ArrayStringIterationCumulative Views Reach Target Day
1/5This Capital One interview question evaluates your ability to process sequential data and track running totals efficiently. You will need to determine the precise point in a collection where a specific cumulative threshold is achieved or surpassed under given constraints. The task tests fundamental looping concepts and boundary handling for missing targets. Access to the comprehensive problem description and complete verified solution requires an active subscription.
ArrayPrefix SumRunning SumGet Function Execution Time
3/5Reconstruct how long each function actually ran from a log of starts and finishes, where a higher-priority task suspends whatever was running. This Capital One question is the classic exclusive-time problem: a stack holds the suspended work, and each log entry charges elapsed time to whatever sits on top. You will pause the parent on a nested start, resume it on the matching finish, and get the inclusive-versus-exclusive boundary right. The full problem and the reference solution require a subscription.
StackSimulationTimestampsDesign a Bank Class: Deposit, Withdraw, Transfer
3/5Tackle this Capital One reported interview question, designed as an object-oriented programming round to build a robust financial platform backend. You will implement fundamental banking operations including secure deposits, withdrawals, and atomic money transfers between accounts while addressing incremental feature expansions and data validation. This challenge evaluates your software design patterns, maintainability, and ability to adapt code structures to changing business logic. Access to the comprehensive prompt and verified reference solution is available exclusively to subscribers.
OOP DesignObject DesignTransactions
Capital One coding interview FAQ
- What coding questions does Capital One ask?
- 41 reported coding questions, most often on Simulation, Array, String, Counting, Math.
- How hard is the Capital One coding interview?
- The reported coding questions average 2.4 out of 5: 8 at 1/5, 12 at 2/5, 19 at 3/5, 2 at 4/5.
- Are these Capital One coding questions recent?
- The most recent report is from October 2026, and 31 were reported within the last twelve months. Dates come from the interview reports themselves.