Jpmorgan Coding Interview Questions

78 DSA problems tagged as asked in Jpmorgan coding interviews and online assessments. Below are all 78: 25 easy, 45 medium and 8 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Jpmorgan DSA problems, easiest first

  1. Best Time to Buy and Sell Stock (Easy)
  2. Button with Longest Push Time (Easy)
  3. Check if Number Has Equal Digit Count and Digit Value (Easy)
  4. Climbing Stairs (Easy)
  5. Count Binary Substrings (Easy)
  6. Degree of an Array (Easy)
  7. Determine Color of a Chessboard Square (Easy)
  8. Find Common Characters (Easy)
  9. Find Resultant Array After Removing Anagrams (Easy)
  10. First Unique Character in a String (Easy)
  11. Fizz Buzz (Easy)
  12. Happy Number (Easy)
  13. Intersection of Two Arrays (Easy)
  14. Last Stone Weight (Easy)
  15. Lexicographically Smallest String After a Swap (Easy)
  16. Maximum Product of Two Elements in an Array (Easy)
  17. Minimum Absolute Difference (Easy)
  18. Minimum String Length After Removing Substrings (Easy)
  19. Minimum Time to Type Word Using Special Typewriter (Easy)
  20. Number Complement (Easy)
  21. Reverse Linked List (Easy)
  22. Roman to Integer (Easy)
  23. Slowest Key (Easy)
  24. Two Sum (Easy)
  25. Valid Parentheses (Easy)
  26. Best Time to Buy and Sell Stock II (Medium)
  27. Coin Change (Medium)
  28. Construct String With Repeat Limit (Medium)
  29. Container With Most Water (Medium)
  30. Daily Temperatures (Medium)
  31. Display Table of Food Orders in a Restaurant (Medium)
  32. Divide Players Into Teams of Equal Skill (Medium)
  33. Find Occurrences of an Element in an Array (Medium)
  34. Find Peak Element (Medium)
  35. Find The First Player to win K Games in a Row (Medium)
  36. Find the Winner of an Array Game (Medium)
  37. Get Equal Substrings Within Budget (Medium)
  38. Group Anagrams (Medium)
  39. Letter Combinations of a Phone Number (Medium)
  40. Lexicographically Smallest String After Applying Operations (Medium)
  41. Longest Consecutive Sequence (Medium)
  42. Longest Palindromic Substring (Medium)
  43. Longest Substring Without Repeating Characters (Medium)
  44. LRU Cache (Medium)
  45. Maximum Subarray (Medium)
  46. Meeting Rooms II (Medium)
  47. Merge Intervals (Medium)
  48. Minimum Cost to Connect Sticks (Medium)
  49. Minimum Moves to Equal Array Elements (Medium)
  50. Minimum Number of Steps to Make Two Strings Anagram (Medium)
  51. Minimum Operations to Make All Array Elements Equal (Medium)
  52. Minimum Prefix Removal to Make Array Strictly Increasing (Medium)
  53. Minimum Suffix Flips (Medium)
  54. Minimum Swaps to Make Strings Equal (Medium)
  55. Non-overlapping Intervals (Medium)
  56. Number of Ways to Split Array (Medium)
  57. Permutations (Medium)
  58. Rearrange Array to Maximize Prefix Score (Medium)
  59. Reverse Odd Levels of Binary Tree (Medium)
  60. Rotate Image (Medium)
  61. Sell Diminishing-Valued Colored Balls (Medium)
  62. Set Matrix Zeroes (Medium)
  63. Shuffle an Array (Medium)
  64. Spiral Matrix (Medium)
  65. Subarray Sums Divisible by K (Medium)
  66. Suspicious Bank Accounts (Medium)
  67. Taking Maximum Energy From the Mystic Dungeon (Medium)
  68. Top K Frequent Elements (Medium)
  69. Two Best Non-Overlapping Events (Medium)
  70. Two Sum II - Input Array Is Sorted (Medium)
  71. Distinct Subsequences (Hard)
  72. Find Median from Data Stream (Hard)
  73. Maximum Number of Points From Grid Queries (Hard)
  74. Minimum Cost to Make Array Equal (Hard)
  75. Numbers With Repeated Digits (Hard)
  76. Reaching Points (Hard)
  77. Sliding Window Maximum (Hard)
  78. Trapping Rain Water (Hard)

Prepare for the rest of the Jpmorgan process

Other companies