cswork / companiesOpen practice workspace

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
  1. CodeSort Each Adjacent Pair of an Array, Leaving an Odd Last Element in PlaceMedium
  2. CodeFind the Integer Point Covered by the Most Street LampsMedium
  3. CodeCount Subarrays Whose Step-by-Step Changes Match an Up, Flat, Down PatternMedium
  4. CodeLongest Straight-Line Robot Walk in a Grid with Forbidden Rows and ColumnsMedium
  5. CodeGrid State After a Given Number of Days of Spoilage Spreading to NeighborsMedium
  6. CodeSum of Distinct Values on the Borders of All Maximum-Sum Square FramesHard
  7. CodeReorder a String by Alternating Its Front and Back CharactersHard
  8. CodeMinutes Until the Next Bus From a Daily Departure ScheduleHard
  9. CodeCount Subarrays Containing at Least k Disjoint Pairs of Equal ValuesHard
  10. CodeFind Repeated-Value Patterns in a MatrixMedium
  11. CodeCheck Fixed Board Placements Against Number-Line BlockersMedium
  12. CodeCheck Alternating Highs and Lows Around a Circular ArrayMedium
  13. CodeCount Pairs of Numbers That Become Equal After at Most One Digit SwapHard
  14. CodeReturn the Top Two Teams by Points, Goal Difference, and Tie BreakersMedium
  15. CodeSorted Sums of Absolute Differences Over All Cyclic Shifts of an ArrayMedium
  16. CodeFind the Top-Left Submatrix Matching a Grid Pattern With Letter VariablesMedium
  17. CodeFind the First Array Element Smaller Than Both of Its NeighborsMedium
  18. CodeBlock-Building Operations: Check Whether a Free Segment Starts at a PositionMedium
  19. CodeWrite SQL using joins and window functionsMedium
  20. CodeOptimize invites under capacity constraintsMedium
  21. QDesign late-tolerant streaming window aggregatorMedium
  22. CodeImplement minimal-cost overtime/contractor allocationMedium
  23. CodeDebug and test a Python function in venvMedium
  24. QFix failing tests and refactor codeMedium
  25. QMaximize grid-path expression and count sawtooth subarraysMedium
  26. QFind lexicographically smallest string and elimination orderHard
  27. CodeCount ordered pairs that concatenate to targetMedium
  28. CodeApply commands to transform a matrixMedium
  29. QSolve powers, phases, grid pops, and swapsMedium
  30. CodeRotate matrix and find max lamp coverageMedium
  31. CodeImplement 2D transforms and find max-lit pointMedium
  32. CodeSolve matrix rotation and 1-D illuminationMedium
  33. QValidate Unit-Test Coverage and Identify Missing ScenariosMedium
  34. QExplain Shell Script for Python Virtual Environment SetupMedium
  35. QCritique Shell Script for Credit-Card Program Tech RoundMedium
  36. CodeExplain Shell Script Line-by-Line for Data Science WorkflowsMedium
  37. CodeCritique and Test Python Preprocessing Utilities EffectivelyMedium
  38. CodeSolve string merge and grid path tasksMedium
  39. CodeExplain Python Virtual Environment Setup and Function AnalysisMedium