BY CATEGORY · Capital One
Capital One Coding & algorithms Interview Questions
Prepare for Capital One Coding & algorithms questions: 39 interview questions from real interviews. Read, practise and mock them on CSWork.
- Questions
- 39
- Updated
- 2026-10-03
Interview questions 39
Filter in the workspace- CodeSort Each Adjacent Pair of an Array, Leaving an Odd Last Element in PlaceMedium
- CodeFind the Integer Point Covered by the Most Street LampsMedium
- CodeCount Subarrays Whose Step-by-Step Changes Match an Up, Flat, Down PatternMedium
- CodeLongest Straight-Line Robot Walk in a Grid with Forbidden Rows and ColumnsMedium
- CodeGrid State After a Given Number of Days of Spoilage Spreading to NeighborsMedium
- CodeSum of Distinct Values on the Borders of All Maximum-Sum Square FramesHard
- CodeReorder a String by Alternating Its Front and Back CharactersHard
- CodeMinutes Until the Next Bus From a Daily Departure ScheduleHard
- CodeCount Subarrays Containing at Least k Disjoint Pairs of Equal ValuesHard
- CodeFind Repeated-Value Patterns in a MatrixMedium
- CodeCheck Fixed Board Placements Against Number-Line BlockersMedium
- CodeCheck Alternating Highs and Lows Around a Circular ArrayMedium
- CodeCount Pairs of Numbers That Become Equal After at Most One Digit SwapHard
- CodeReturn the Top Two Teams by Points, Goal Difference, and Tie BreakersMedium
- CodeSorted Sums of Absolute Differences Over All Cyclic Shifts of an ArrayMedium
- CodeFind the Top-Left Submatrix Matching a Grid Pattern With Letter VariablesMedium
- CodeFind the First Array Element Smaller Than Both of Its NeighborsMedium
- CodeBlock-Building Operations: Check Whether a Free Segment Starts at a PositionMedium
- CodeWrite SQL using joins and window functionsMedium
- CodeOptimize invites under capacity constraintsMedium
- QDesign late-tolerant streaming window aggregatorMedium
- CodeImplement minimal-cost overtime/contractor allocationMedium
- CodeDebug and test a Python function in venvMedium
- QFix failing tests and refactor codeMedium
- QMaximize grid-path expression and count sawtooth subarraysMedium
- QFind lexicographically smallest string and elimination orderHard
- CodeCount ordered pairs that concatenate to targetMedium
- CodeApply commands to transform a matrixMedium
- QSolve powers, phases, grid pops, and swapsMedium
- CodeRotate matrix and find max lamp coverageMedium
- CodeImplement 2D transforms and find max-lit pointMedium
- CodeSolve matrix rotation and 1-D illuminationMedium
- QValidate Unit-Test Coverage and Identify Missing ScenariosMedium
- QExplain Shell Script for Python Virtual Environment SetupMedium
- QCritique Shell Script for Credit-Card Program Tech RoundMedium
- CodeExplain Shell Script Line-by-Line for Data Science WorkflowsMedium
- CodeCritique and Test Python Preprocessing Utilities EffectivelyMedium
- CodeSolve string merge and grid path tasksMedium
- CodeExplain Python Virtual Environment Setup and Function AnalysisMedium