Nvidia Coding Interview Questions

137 DSA problems tagged as asked in Nvidia coding interviews and online assessments. Below are the first 100 of 137: 34 easy, 52 medium and 14 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Nvidia DSA problems, easiest first

  1. Best Time to Buy and Sell Stock (Easy)
  2. Climbing Stairs (Easy)
  3. Counting Bits (Easy)
  4. Design HashMap (Easy)
  5. Fibonacci Number (Easy)
  6. Find Pivot Index (Easy)
  7. First Unique Character in a String (Easy)
  8. Fizz Buzz (Easy)
  9. Intersection of Two Arrays (Easy)
  10. Is Subsequence (Easy)
  11. Last Stone Weight (Easy)
  12. Linked List Cycle (Easy)
  13. Longest Common Prefix (Easy)
  14. Maximum Product of Three Numbers (Easy)
  15. Merge Sorted Array (Easy)
  16. Merge Two Sorted Lists (Easy)
  17. Middle of the Linked List (Easy)
  18. Minimum Absolute Difference (Easy)
  19. Missing Number (Easy)
  20. Move Zeroes (Easy)
  21. Number of 1 Bits (Easy)
  22. Number of Lines To Write String (Easy)
  23. Power of Two (Easy)
  24. Remove Duplicates from Sorted List (Easy)
  25. Reverse Bits (Easy)
  26. Reverse Linked List (Easy)
  27. Reverse Only Letters (Easy)
  28. Reverse String (Easy)
  29. Sqrt(x) (Easy)
  30. Third Maximum Number (Easy)
  31. Two Sum (Easy)
  32. Valid Anagram (Easy)
  33. Valid Parentheses (Easy)
  34. Word Pattern (Easy)
  35. 3Sum (Medium)
  36. 4Sum (Medium)
  37. Add Two Numbers (Medium)
  38. All Possible Full Binary Trees (Medium)
  39. Asteroid Collision (Medium)
  40. Break a Palindrome (Medium)
  41. Coin Change (Medium)
  42. Container With Most Water (Medium)
  43. Convert Binary Search Tree to Sorted Doubly Linked List (Medium)
  44. Count the Number of Good Subsequences (Medium)
  45. Daily Temperatures (Medium)
  46. Decode String (Medium)
  47. Design Memory Allocator (Medium)
  48. Dot Product of Two Sparse Vectors (Medium)
  49. Find K Closest Elements (Medium)
  50. Find the Celebrity (Medium)
  51. Find the Duplicate Number (Medium)
  52. Find The Original Array of Prefix Xor (Medium)
  53. Find the Winner of an Array Game (Medium)
  54. Generate Parentheses (Medium)
  55. H-Index (Medium)
  56. Insert Delete GetRandom O(1) (Medium)
  57. Keys and Rooms (Medium)
  58. Linked List Random Node (Medium)
  59. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit (Medium)
  60. Longest Increasing Subsequence (Medium)
  61. Longest Substring Without Repeating Characters (Medium)
  62. Max Sum of a Pair With Equal Sum of Digits (Medium)
  63. Maximize Greatness of an Array (Medium)
  64. Maximum Number of Events That Can Be Attended (Medium)
  65. Maximum Sum of Distinct Subarrays With Length K (Medium)
  66. Merge In Between Linked Lists (Medium)
  67. Minimum Knight Moves (Medium)
  68. Minimum Operations to Reduce an Integer to 0 (Medium)
  69. Number of Ways to Split Array (Medium)
  70. Remove Stones to Minimize the Total (Medium)
  71. Reverse Integer (Medium)
  72. Robot Bounded In Circle (Medium)
  73. Rotate Image (Medium)
  74. Rotting Oranges (Medium)
  75. Search in Rotated Sorted Array (Medium)
  76. Snapshot Array (Medium)
  77. String Compression (Medium)
  78. String to Integer (atoi) (Medium)
  79. Subarray Product Less Than K (Medium)
  80. Subarray Sum Equals K (Medium)
  81. Task Scheduler (Medium)
  82. Task Scheduler II (Medium)
  83. The Maze (Medium)
  84. Top K Frequent Elements (Medium)
  85. Validate IP Address (Medium)
  86. Verify Preorder Sequence in Binary Search Tree (Medium)
  87. Binary Tree Maximum Path Sum (Hard)
  88. Delete Duplicate Folders in System (Hard)
  89. Find Median from Data Stream (Hard)
  90. Integer to English Words (Hard)
  91. Max Points on a Line (Hard)
  92. Maximum Number of Visible Points (Hard)
  93. Median of Two Sorted Arrays (Hard)
  94. Merge k Sorted Lists (Hard)
  95. Serialize and Deserialize Binary Tree (Hard)
  96. Sliding Puzzle (Hard)
  97. Sliding Window Maximum (Hard)
  98. Special Binary String (Hard)
  99. The Skyline Problem (Hard)
  100. Trapping Rain Water (Hard)

Prepare for the rest of the Nvidia process

Other companies