0 day streak

Capital One coding interview questions

BankingFintech Global

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Maximum Profit in Job Scheduling1D DP Hard Dynamic Programming Amazon, Airbnb, Snowflake +15 Solve
Simple Bank SystemPre-processing + tradeoffs Medium Design Data Structures Airbnb, Stripe, Coinbase +8 Solve
Text JustificationSimulation Hard Arrays & Hashing Google, Microsoft, LinkedIn +28 Solve
Block Placement QueriesSegment Tree Hard Intervals Uber, TikTok (ByteDance), Roblox +3 Solve
Candy CrushSimulation Medium Arrays & Hashing Bloomberg, Pinterest, Rubrik +3 Solve
Spiral MatrixMatrix Traversal Medium Arrays & Hashing Microsoft, Apple, Databricks +52 Solve
Find the Length of the Longest Common PrefixBasics Medium Tries Databricks, Coinbase, Instacart +3 Solve
Design Memory AllocatorSimulation Medium Design Data Structures Nvidia, Rubrik, Tesla +7 Solve
Simplify PathStack Basics Medium Stack Meta, Snowflake, Grab +11 Solve
Number of Black BlocksHashing Medium Arrays & Hashing Stripe, X (Twitter), Visa +2 Solve
Minimize Result by Adding Parentheses to ExpressionCandidate Generation Medium Arrays & Hashing Pinterest, Coinbase, eBay Solve
Rotate ImageIn-place Transformations Medium Arrays & Hashing Amazon, Apple, Nvidia +38 Solve
Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitSliding Window · Variable Medium Arrays & Hashing Uber, MongoDB, Datadog +6 Solve
Largest Rectangle in HistogramMonotonic Stack Hard Monotonic Stack Microsoft, Meta, DoorDash +23 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +114 Solve
Binary Tree PathsBasic Recursion Easy Recursion & Backtracking Bloomberg, Revolut, Marvell Technology +1 Solve
Rotating the BoxTwo Pointer Medium Arrays & Hashing Google, Roblox, Visa +2 Solve
Palindrome NumberMath / Number Theory Easy Arrays & Hashing Bloomberg, Cloudflare, Morgan Stanley +27 Solve
Container With Most WaterTwo Pointer Medium Arrays & Hashing Google, Amazon, Microsoft +59 Solve
Brightest Position on StreetLine Sweep Medium Intervals Robinhood, Roblox, Hudson River Trading Solve
Merge IntervalsBasics Medium Intervals Google, Amazon, Microsoft +107 Solve
Minimum Time DifferenceSorting Medium Arrays & Hashing Palantir, Visa Solve
Add StringsRight to Left Traversal Easy Arrays & Hashing Microsoft, Airbnb, Wayfair +7 Solve
Add Two NumbersDummy Node Pattern Medium Linked List Amazon, Microsoft, Meta +33 Solve
Best Time to Buy and Sell StockState Machine DP - Stock Problems Easy Dynamic Programming Amazon, Microsoft, Apple +101 Solve
Design File SystemPre-processing + tradeoffs Medium Design Data Structures Google, Airbnb, Snowflake +2 Solve
Letter Combinations of a Phone NumberChoice per Position Medium Recursion & Backtracking Amazon, Microsoft, Meta +25 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +135 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
Subarrays with K Different IntegersSliding Window · Hash Map Hard Arrays & Hashing Roblox, Adobe, ServiceNow +10 Solve
Flood FillMatrix Graphs Easy Graphs Amazon, Palantir, Qualtrics +4 Solve
Reconstruct ItineraryEulerian Path (Hierholzer) Hard Graphs Amazon, Netflix, Airbnb +16 Solve
Word LadderBFS for shortest path Hard Graphs Google, Amazon, Microsoft +39 Solve
Subarray Sum Equals KPrefix Sum Strategy Medium Arrays & Hashing Google, Amazon, Microsoft +41 Solve
Count PrimesMath / Number Theory Medium Arrays & Hashing Databricks, Epic Systems, American Express +19 Solve
Meeting Rooms IILine Sweep Medium Intervals Google, Amazon, Meta +50 Solve
Also reported, being added to AlgoRung (15)

Minimum Operations to Write the Letter Y on a Grid · Restore the Array From Adjacent Pairs · Number of Adjacent Elements With the Same Color · Four Divisors · Count Operations to Obtain Zero · Count Alternating Subarrays · Count Prefix and Suffix Pairs II · Number of Subarrays That Match a Pattern I · Count Positions on Street With Required Brightness · Minimum Absolute Difference Between Elements With Constraint · Monotonic Array · Alternating Groups II · Count Prefix and Suffix Pairs I · Grumpy Bookstore Owner · Number of Changing Keys

Questions people ask

What coding questions does Capital One ask most?

Maximum Profit in Job Scheduling, Simple Bank System, Text Justification, Block Placement Queries, Candy Crush, Spiral Matrix, Find the Length of the Longest Common Prefix, Design Memory Allocator.

Which topics come up in Capital One coding rounds?

arrays, strings, hash maps, grids, sliding window, intervals.

How hard are Capital One coding questions?

Of the reported questions, 6 are easy, 23 medium and 7 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.