Capital ONE Coding Interview Questions

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 (Easy)
  2. Alternating Digit Sum (Easy)
  3. Best Time to Buy and Sell Stock (Easy)
  4. Binary Tree Paths (Easy)
  5. Count Operations to Obtain Zero (Easy)
  6. Count Prefix and Suffix Pairs I (Easy)
  7. Flood Fill (Easy)
  8. Monotonic Array (Easy)
  9. Number of Changing Keys (Easy)
  10. Palindrome Number (Easy)
  11. Valid Parentheses (Easy)
  12. Add Two Numbers (Medium)
  13. Best Time to Buy and Sell Stock II (Medium)
  14. Brightest Position on Street (Medium)
  15. Candy Crush (Medium)
  16. Coin Change (Medium)
  17. Container With Most Water (Medium)
  18. Count Alternating Subarrays (Medium)
  19. Count Nice Pairs in an Array (Medium)
  20. Design File System (Medium)
  21. Design Memory Allocator (Medium)
  22. Find the Length of the Longest Common Prefix (Medium)
  23. Four Divisors (Medium)
  24. Grumpy Bookstore Owner (Medium)
  25. Letter Combinations of a Phone Number (Medium)
  26. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit (Medium)
  27. Longest Substring Without Repeating Characters (Medium)
  28. LRU Cache (Medium)
  29. Meeting Rooms II (Medium)
  30. Merge Intervals (Medium)
  31. Minimum Absolute Difference Between Elements With Constraint (Medium)
  32. Minimum Operations to Write the Letter Y on a Grid (Medium)
  33. Minimum Time Difference (Medium)
  34. Non-overlapping Intervals (Medium)
  35. Number of Adjacent Elements With the Same Color (Medium)
  36. Number of Black Blocks (Medium)
  37. Number of Islands (Medium)
  38. Number of Pairs of Strings With Concatenation Equal to Target (Medium)
  39. Number of Subarrays That Match a Pattern I (Medium)
  40. Palindromic Substrings (Medium)
  41. Restore the Array From Adjacent Pairs (Medium)
  42. Rotate Image (Medium)
  43. Rotating the Box (Medium)
  44. Simple Bank System (Medium)
  45. Simplify Path (Medium)
  46. Spiral Matrix (Medium)
  47. Subarray Sum Equals K (Medium)
  48. Block Placement Queries (Hard)
  49. Count Prefix and Suffix Pairs II (Hard)
  50. Largest Rectangle in Histogram (Hard)
  51. Maximum Running Time of N Computers (Hard)
  52. Number of Flowers in Full Bloom (Hard)
  53. Reconstruct Itinerary (Hard)
  54. Remove Boxes (Hard)
  55. Subarrays with K Different Integers (Hard)
  56. Text Justification (Hard)
  57. Word Ladder (Hard)

Prepare for the rest of the Capital ONE process

Other companies