# Capital ONE Coding Interview Questions

> 57 DSA problems asked in Capital ONE coding interviews and online assessments, sorted easiest first with hints. Free practice for placements on InternHack.

Canonical: https://www.internhack.in/learn/dsa/companies/capital-one
Last updated: 2026-11-28

57 DSA problems tagged as asked in Capital ONE coding interviews and online assessments. Below are all 57: 11 easy, 36 medium and 10 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

## Capital ONE DSA problems, easiest first

1. [Add Strings](https://www.internhack.in/learn/dsa/problem/add-strings) (Easy)
2. [Alternating Digit Sum](https://www.internhack.in/learn/dsa/problem/alternating-digit-sum) (Easy)
3. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
4. [Binary Tree Paths](https://www.internhack.in/learn/dsa/problem/binary-tree-paths) (Easy)
5. [Count Operations to Obtain Zero](https://www.internhack.in/learn/dsa/problem/count-operations-to-obtain-zero) (Easy)
6. [Count Prefix and Suffix Pairs I](https://www.internhack.in/learn/dsa/problem/count-prefix-and-suffix-pairs-i) (Easy)
7. [Flood Fill](https://www.internhack.in/learn/dsa/problem/flood-fill) (Easy)
8. [Monotonic Array](https://www.internhack.in/learn/dsa/problem/monotonic-array) (Easy)
9. [Number of Changing Keys](https://www.internhack.in/learn/dsa/problem/number-of-changing-keys) (Easy)
10. [Palindrome Number](https://www.internhack.in/learn/dsa/problem/palindrome-number) (Easy)
11. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
12. [Add Two Numbers](https://www.internhack.in/learn/dsa/problem/add-two-numbers) (Medium)
13. [Best Time to Buy and Sell Stock II](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock-ii) (Medium)
14. [Brightest Position on Street](https://www.internhack.in/learn/dsa/problem/brightest-position-on-street) (Medium)
15. [Candy Crush](https://www.internhack.in/learn/dsa/problem/candy-crush) (Medium)
16. [Coin Change](https://www.internhack.in/learn/dsa/problem/coin-change) (Medium)
17. [Container With Most Water](https://www.internhack.in/learn/dsa/problem/container-with-most-water) (Medium)
18. [Count Alternating Subarrays](https://www.internhack.in/learn/dsa/problem/count-alternating-subarrays) (Medium)
19. [Count Nice Pairs in an Array](https://www.internhack.in/learn/dsa/problem/count-nice-pairs-in-an-array) (Medium)
20. [Design File System](https://www.internhack.in/learn/dsa/problem/design-file-system) (Medium)
21. [Design Memory Allocator](https://www.internhack.in/learn/dsa/problem/design-memory-allocator) (Medium)
22. [Find the Length of the Longest Common Prefix](https://www.internhack.in/learn/dsa/problem/find-the-length-of-the-longest-common-prefix) (Medium)
23. [Four Divisors](https://www.internhack.in/learn/dsa/problem/four-divisors) (Medium)
24. [Grumpy Bookstore Owner](https://www.internhack.in/learn/dsa/problem/grumpy-bookstore-owner) (Medium)
25. [Letter Combinations of a Phone Number](https://www.internhack.in/learn/dsa/problem/letter-combinations-of-a-phone-number) (Medium)
26. [Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit](https://www.internhack.in/learn/dsa/problem/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit) (Medium)
27. [Longest Substring Without Repeating Characters](https://www.internhack.in/learn/dsa/problem/longest-substring-without-repeating-characters) (Medium)
28. [LRU Cache](https://www.internhack.in/learn/dsa/problem/lru-cache) (Medium)
29. [Meeting Rooms II](https://www.internhack.in/learn/dsa/problem/meeting-rooms-ii) (Medium)
30. [Merge Intervals](https://www.internhack.in/learn/dsa/problem/merge-intervals) (Medium)
31. [Minimum Absolute Difference Between Elements With Constraint](https://www.internhack.in/learn/dsa/problem/minimum-absolute-difference-between-elements-with-constraint) (Medium)
32. [Minimum Operations to Write the Letter Y on a Grid](https://www.internhack.in/learn/dsa/problem/minimum-operations-to-write-the-letter-y-on-a-grid) (Medium)
33. [Minimum Time Difference](https://www.internhack.in/learn/dsa/problem/minimum-time-difference) (Medium)
34. [Non-overlapping Intervals](https://www.internhack.in/learn/dsa/problem/non-overlapping-intervals) (Medium)
35. [Number of Adjacent Elements With the Same Color](https://www.internhack.in/learn/dsa/problem/number-of-adjacent-elements-with-the-same-color) (Medium)
36. [Number of Black Blocks](https://www.internhack.in/learn/dsa/problem/number-of-black-blocks) (Medium)
37. [Number of Islands](https://www.internhack.in/learn/dsa/problem/number-of-islands) (Medium)
38. [Number of Pairs of Strings With Concatenation Equal to Target](https://www.internhack.in/learn/dsa/problem/number-of-pairs-of-strings-with-concatenation-equal-to-target) (Medium)
39. [Number of Subarrays That Match a Pattern I](https://www.internhack.in/learn/dsa/problem/number-of-subarrays-that-match-a-pattern-i) (Medium)
40. [Palindromic Substrings](https://www.internhack.in/learn/dsa/problem/palindromic-substrings) (Medium)
41. [Restore the Array From Adjacent Pairs](https://www.internhack.in/learn/dsa/problem/restore-the-array-from-adjacent-pairs) (Medium)
42. [Rotate Image](https://www.internhack.in/learn/dsa/problem/rotate-image) (Medium)
43. [Rotating the Box](https://www.internhack.in/learn/dsa/problem/rotating-the-box) (Medium)
44. [Simple Bank System](https://www.internhack.in/learn/dsa/problem/simple-bank-system) (Medium)
45. [Simplify Path](https://www.internhack.in/learn/dsa/problem/simplify-path) (Medium)
46. [Spiral Matrix](https://www.internhack.in/learn/dsa/problem/spiral-matrix) (Medium)
47. [Subarray Sum Equals K](https://www.internhack.in/learn/dsa/problem/subarray-sum-equals-k) (Medium)
48. [Block Placement Queries](https://www.internhack.in/learn/dsa/problem/block-placement-queries) (Hard)
49. [Count Prefix and Suffix Pairs II](https://www.internhack.in/learn/dsa/problem/count-prefix-and-suffix-pairs-ii) (Hard)
50. [Largest Rectangle in Histogram](https://www.internhack.in/learn/dsa/problem/largest-rectangle-in-histogram) (Hard)
51. [Maximum Running Time of N Computers](https://www.internhack.in/learn/dsa/problem/maximum-running-time-of-n-computers) (Hard)
52. [Number of Flowers in Full Bloom](https://www.internhack.in/learn/dsa/problem/number-of-flowers-in-full-bloom) (Hard)
53. [Reconstruct Itinerary](https://www.internhack.in/learn/dsa/problem/reconstruct-itinerary) (Hard)
54. [Remove Boxes](https://www.internhack.in/learn/dsa/problem/remove-boxes) (Hard)
55. [Subarrays with K Different Integers](https://www.internhack.in/learn/dsa/problem/subarrays-with-k-different-integers) (Hard)
56. [Text Justification](https://www.internhack.in/learn/dsa/problem/text-justification) (Hard)
57. [Word Ladder](https://www.internhack.in/learn/dsa/problem/word-ladder) (Hard)

## Prepare for the rest of the Capital ONE process

- [Aptitude questions by company](https://www.internhack.in/learn/aptitude/companies)
- [Technical interview questions](https://www.internhack.in/learn/interview)
- [Free ATS resume check](https://www.internhack.in/ats-score/try), no signup

## Other companies

- [Google](https://www.internhack.in/learn/dsa/companies/google) (2217)
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon) (1938)
- [Meta](https://www.internhack.in/learn/dsa/companies/meta) (1387)
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft) (1352)
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg) (1173)
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok) (383)
- [Uber](https://www.internhack.in/learn/dsa/companies/uber) (381)
- [Apple](https://www.internhack.in/learn/dsa/companies/apple) (356)
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle) (340)
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs) (270)
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe) (227)
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs) (217)
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce) (189)
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin) (180)
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho) (179)
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm) (170)
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys) (158)
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs) (152)
- [Accenture](https://www.internhack.in/learn/dsa/companies/accenture) (144)
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia) (137)
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex) (134)
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw) (124)
- [Visa](https://www.internhack.in/learn/dsa/companies/visa) (124)
- [Flipkart](https://www.internhack.in/learn/dsa/companies/flipkart) (117)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA by company](https://www.internhack.in/learn/dsa/companies)
