Capital One logo CO
Verified Company Vault 30d Active

Capital One DSA Interview Questions

60 curated coding interview questions directly asked in Capital One technical rounds, sorted by frequency with recency and difficulty diagnostics.

60 Total Questions
13 (22%) Easy Problems
36 (60%) Medium Problems
11 (18%) Hard Problems
🔥 Most Tested Topics:
Core DSA (26)Arrays (19)Strings (10)Trees (4)Design (3)
📂 Sourced Datasets:
Last 30 daysLast 3 monthsLast 6 monthsAll questionsOlder than 6 months
Showing 60 of 60 displayed
IDProblemDifficultyTopicPatternAcceptanceFrequencyRecency
3043Find the Length of the Longest Common PrefixMediumCore DSAImplementation / Reasoning62.2%100.0%30d
1743Restore the Array From Adjacent PairsMediumArraysSorting / Prefix / Scan75.0%100.0%3m
2672Number of Adjacent Elements With the Same ColorMediumCore DSAImplementation / Reasoning59.6%87.5%30d
257Binary Tree PathsEasyTreesDFS / BFS68.7%87.5%30d
68Text JustificationHardCore DSAImplementation / Reasoning51.2%87.5%30d
2043Simple Bank SystemMediumCore DSAImplementation / Reasoning69.7%87.5%3m
2502Design Memory AllocatorMediumDesignData Structure Design50.1%87.5%3m
3072Distribute Elements Into Two Arrays IIHardArraysSorting / Prefix / Scan30.7%87.5%3m
54Spiral MatrixMediumArraysSorting / Prefix / Scan56.8%87.5%3m
723Candy CrushMediumCore DSAImplementation / Reasoning77.4%87.5%3m
3161Block Placement QueriesHardCore DSAImplementation / Reasoning18.7%87.5%all
3071Minimum Operations to Write the Letter Y on a GridMediumArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window64.6%87.5%all
48Rotate ImageMediumArraysSorting / Prefix / Scan80.1%75.0%all
71Simplify PathMediumCore DSAImplementation / Reasoning50.6%75.0%all
2768Number of Black BlocksMediumCore DSAImplementation / Reasoning41.8%75.0%all
200Number of IslandsMediumGraphsBFS / DFS / Topological Sort64.4%62.5%6m
896Monotonic ArrayEasyArraysSorting / Prefix / Scan62.3%62.5%6m
2141Maximum Running Time of N ComputersHardArraysSorting / Prefix / Scan56.5%62.5%6m
2817Minimum Absolute Difference Between Elements With ConstraintMediumArraysSorting / Prefix / Scan37.7%62.5%6m
647Palindromic SubstringsMediumStrings; TreesHashing / Sliding Window; DFS / BFS72.8%62.5%6m
2023Number of Pairs of Strings With Concatenation Equal to TargetMediumStringsHashing / Sliding Window75.4%62.5%6m
3019Number of Changing KeysEasyCore DSAImplementation / Reasoning80.7%62.5%6m
1390Four DivisorsMediumCore DSAImplementation / Reasoning56.6%62.5%all
3101Count Alternating SubarraysMediumArraysSorting / Prefix / Scan57.5%62.5%all
1438Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMediumArraysSorting / Prefix / Scan57.7%62.5%all
84Largest Rectangle in HistogramHardCore DSAImplementation / Reasoning49.9%62.5%all
2169Count Operations to Obtain ZeroEasyCore DSAImplementation / Reasoning79.8%62.5%all
1861Rotating the BoxMediumCore DSAImplementation / Reasoning82.5%62.5%all
3045Count Prefix and Suffix Pairs IIHardCore DSAImplementation / Reasoning28.4%62.5%all
2Add Two NumbersMediumCore DSAImplementation / Reasoning48.5%50.0%all
121Best Time to Buy and Sell StockEasyCore DSAImplementation / Reasoning56.8%50.0%all
1166Design File SystemMediumDesignData Structure Design65.1%50.0%all
9Palindrome NumberEasyStringsHashing / Sliding Window60.6%50.0%all
415Add StringsEasyStringsHashing / Sliding Window52.2%50.0%all
3034Number of Subarrays That Match a Pattern IMediumArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window68.6%50.0%all
539Minimum Time DifferenceMediumArraysSorting / Prefix / Scan62.6%50.0%all
11Container With Most WaterMediumCore DSATwo Pointers60.0%50.0%all
546Remove BoxesHardCore DSAImplementation / Reasoning49.4%37.5%all
2251Number of Flowers in Full BloomHardCore DSAImplementation / Reasoning57.9%37.5%all
435Non-overlapping IntervalsMediumArrays; GreedySorting / Prefix / Scan; Greedy57.1%37.5%all
253Meeting Rooms IIMediumGreedyGreedy52.7%37.5%all
3042Count Prefix and Suffix Pairs IEasyCore DSAImplementation / Reasoning77.8%37.5%all
20Valid ParenthesesEasyStringsHashing / Sliding Window44.2%37.5%all
122Best Time to Buy and Sell Stock IIMediumCore DSAImplementation / Reasoning71.1%37.5%all
56Merge IntervalsMediumArraysSorting / Prefix / Scan51.8%37.5%all
146LRU CacheMediumDesignData Structure Design47.4%37.5%all
992Subarrays with K Different IntegersHardArraysSorting / Prefix / Scan68.1%37.5%all
3Longest Substring Without Repeating CharactersMediumStrings; TreesHashing / Sliding Window; DFS / BFS; Sliding Window39.1%37.5%all
733Flood FillEasyCore DSAImplementation / Reasoning68.3%37.5%all
2021Brightest Position on StreetMediumTreesDFS / BFS60.6%37.5%all
1052Grumpy Bookstore OwnerMediumCore DSAImplementation / Reasoning64.0%37.5%all
2544Alternating Digit SumEasyArraysSorting / Prefix / Scan69.1%37.5%all
1814Count Nice Pairs in an ArrayMediumArraysSorting / Prefix / Scan48.4%37.5%all
332Reconstruct ItineraryHardCore DSAImplementation / Reasoning44.6%37.5%all
127Word LadderHardStringsHashing / Sliding Window45.6%37.5%all
560Subarray Sum Equals KMediumArraysSorting / Prefix / Scan47.3%37.5%all
17Letter Combinations of a Phone NumberMediumStrings; BacktrackingHashing / Sliding Window; Backtracking66.1%37.5%all
1Two SumEasyArraysSorting / Prefix / Scan; Two Pointers57.5%37.5%all
128Longest Consecutive SequenceMediumCore DSAImplementation / Reasoning47.1%37.5%all
412Fizz BuzzEasyCore DSAImplementation / Reasoning75.5%37.5%all