# Nvidia Coding Interview Questions

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

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

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](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
2. [Climbing Stairs](https://www.internhack.in/learn/dsa/problem/climbing-stairs) (Easy)
3. [Counting Bits](https://www.internhack.in/learn/dsa/problem/counting-bits) (Easy)
4. [Design HashMap](https://www.internhack.in/learn/dsa/problem/design-hashmap) (Easy)
5. [Fibonacci Number](https://www.internhack.in/learn/dsa/problem/fibonacci-number) (Easy)
6. [Find Pivot Index](https://www.internhack.in/learn/dsa/problem/find-pivot-index) (Easy)
7. [First Unique Character in a String](https://www.internhack.in/learn/dsa/problem/first-unique-character-in-a-string) (Easy)
8. [Fizz Buzz](https://www.internhack.in/learn/dsa/problem/fizz-buzz) (Easy)
9. [Intersection of Two Arrays](https://www.internhack.in/learn/dsa/problem/intersection-of-two-arrays) (Easy)
10. [Is Subsequence](https://www.internhack.in/learn/dsa/problem/is-subsequence) (Easy)
11. [Last Stone Weight](https://www.internhack.in/learn/dsa/problem/last-stone-weight) (Easy)
12. [Linked List Cycle](https://www.internhack.in/learn/dsa/problem/linked-list-cycle) (Easy)
13. [Longest Common Prefix](https://www.internhack.in/learn/dsa/problem/longest-common-prefix) (Easy)
14. [Maximum Product of Three Numbers](https://www.internhack.in/learn/dsa/problem/maximum-product-of-three-numbers) (Easy)
15. [Merge Sorted Array](https://www.internhack.in/learn/dsa/problem/merge-sorted-array) (Easy)
16. [Merge Two Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-two-sorted-lists) (Easy)
17. [Middle of the Linked List](https://www.internhack.in/learn/dsa/problem/middle-of-the-linked-list) (Easy)
18. [Minimum Absolute Difference](https://www.internhack.in/learn/dsa/problem/minimum-absolute-difference) (Easy)
19. [Missing Number](https://www.internhack.in/learn/dsa/problem/missing-number) (Easy)
20. [Move Zeroes](https://www.internhack.in/learn/dsa/problem/move-zeroes) (Easy)
21. [Number of 1 Bits](https://www.internhack.in/learn/dsa/problem/number-of-1-bits) (Easy)
22. [Number of Lines To Write String](https://www.internhack.in/learn/dsa/problem/number-of-lines-to-write-string) (Easy)
23. [Power of Two](https://www.internhack.in/learn/dsa/problem/power-of-two) (Easy)
24. [Remove Duplicates from Sorted List](https://www.internhack.in/learn/dsa/problem/remove-duplicates-from-sorted-list) (Easy)
25. [Reverse Bits](https://www.internhack.in/learn/dsa/problem/reverse-bits) (Easy)
26. [Reverse Linked List](https://www.internhack.in/learn/dsa/problem/reverse-linked-list) (Easy)
27. [Reverse Only Letters](https://www.internhack.in/learn/dsa/problem/reverse-only-letters) (Easy)
28. [Reverse String](https://www.internhack.in/learn/dsa/problem/reverse-string) (Easy)
29. [Sqrt(x)](https://www.internhack.in/learn/dsa/problem/sqrtx) (Easy)
30. [Third Maximum Number](https://www.internhack.in/learn/dsa/problem/third-maximum-number) (Easy)
31. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
32. [Valid Anagram](https://www.internhack.in/learn/dsa/problem/valid-anagram) (Easy)
33. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
34. [Word Pattern](https://www.internhack.in/learn/dsa/problem/word-pattern) (Easy)
35. [3Sum](https://www.internhack.in/learn/dsa/problem/3sum) (Medium)
36. [4Sum](https://www.internhack.in/learn/dsa/problem/4sum) (Medium)
37. [Add Two Numbers](https://www.internhack.in/learn/dsa/problem/add-two-numbers) (Medium)
38. [All Possible Full Binary Trees](https://www.internhack.in/learn/dsa/problem/all-possible-full-binary-trees) (Medium)
39. [Asteroid Collision](https://www.internhack.in/learn/dsa/problem/asteroid-collision) (Medium)
40. [Break a Palindrome](https://www.internhack.in/learn/dsa/problem/break-a-palindrome) (Medium)
41. [Coin Change](https://www.internhack.in/learn/dsa/problem/coin-change) (Medium)
42. [Container With Most Water](https://www.internhack.in/learn/dsa/problem/container-with-most-water) (Medium)
43. [Convert Binary Search Tree to Sorted Doubly Linked List](https://www.internhack.in/learn/dsa/problem/convert-binary-search-tree-to-sorted-doubly-linked-list) (Medium)
44. [Count the Number of Good Subsequences](https://www.internhack.in/learn/dsa/problem/count-the-number-of-good-subsequences) (Medium)
45. [Daily Temperatures](https://www.internhack.in/learn/dsa/problem/daily-temperatures) (Medium)
46. [Decode String](https://www.internhack.in/learn/dsa/problem/decode-string) (Medium)
47. [Design Memory Allocator](https://www.internhack.in/learn/dsa/problem/design-memory-allocator) (Medium)
48. [Dot Product of Two Sparse Vectors](https://www.internhack.in/learn/dsa/problem/dot-product-of-two-sparse-vectors) (Medium)
49. [Find K Closest Elements](https://www.internhack.in/learn/dsa/problem/find-k-closest-elements) (Medium)
50. [Find the Celebrity](https://www.internhack.in/learn/dsa/problem/find-the-celebrity) (Medium)
51. [Find the Duplicate Number](https://www.internhack.in/learn/dsa/problem/find-the-duplicate-number) (Medium)
52. [Find The Original Array of Prefix Xor](https://www.internhack.in/learn/dsa/problem/find-the-original-array-of-prefix-xor) (Medium)
53. [Find the Winner of an Array Game](https://www.internhack.in/learn/dsa/problem/find-the-winner-of-an-array-game) (Medium)
54. [Generate Parentheses](https://www.internhack.in/learn/dsa/problem/generate-parentheses) (Medium)
55. [H-Index](https://www.internhack.in/learn/dsa/problem/h-index) (Medium)
56. [Insert Delete GetRandom O(1)](https://www.internhack.in/learn/dsa/problem/insert-delete-getrandom-o1) (Medium)
57. [Keys and Rooms](https://www.internhack.in/learn/dsa/problem/keys-and-rooms) (Medium)
58. [Linked List Random Node](https://www.internhack.in/learn/dsa/problem/linked-list-random-node) (Medium)
59. [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)
60. [Longest Increasing Subsequence](https://www.internhack.in/learn/dsa/problem/longest-increasing-subsequence) (Medium)
61. [Longest Substring Without Repeating Characters](https://www.internhack.in/learn/dsa/problem/longest-substring-without-repeating-characters) (Medium)
62. [Max Sum of a Pair With Equal Sum of Digits](https://www.internhack.in/learn/dsa/problem/max-sum-of-a-pair-with-equal-sum-of-digits) (Medium)
63. [Maximize Greatness of an Array](https://www.internhack.in/learn/dsa/problem/maximize-greatness-of-an-array) (Medium)
64. [Maximum Number of Events That Can Be Attended](https://www.internhack.in/learn/dsa/problem/maximum-number-of-events-that-can-be-attended) (Medium)
65. [Maximum Sum of Distinct Subarrays With Length K](https://www.internhack.in/learn/dsa/problem/maximum-sum-of-distinct-subarrays-with-length-k) (Medium)
66. [Merge In Between Linked Lists](https://www.internhack.in/learn/dsa/problem/merge-in-between-linked-lists) (Medium)
67. [Minimum Knight Moves](https://www.internhack.in/learn/dsa/problem/minimum-knight-moves) (Medium)
68. [Minimum Operations to Reduce an Integer to 0](https://www.internhack.in/learn/dsa/problem/minimum-operations-to-reduce-an-integer-to-0) (Medium)
69. [Number of Ways to Split Array](https://www.internhack.in/learn/dsa/problem/number-of-ways-to-split-array) (Medium)
70. [Remove Stones to Minimize the Total](https://www.internhack.in/learn/dsa/problem/remove-stones-to-minimize-the-total) (Medium)
71. [Reverse Integer](https://www.internhack.in/learn/dsa/problem/reverse-integer) (Medium)
72. [Robot Bounded In Circle](https://www.internhack.in/learn/dsa/problem/robot-bounded-in-circle) (Medium)
73. [Rotate Image](https://www.internhack.in/learn/dsa/problem/rotate-image) (Medium)
74. [Rotting Oranges](https://www.internhack.in/learn/dsa/problem/rotting-oranges) (Medium)
75. [Search in Rotated Sorted Array](https://www.internhack.in/learn/dsa/problem/search-in-rotated-sorted-array) (Medium)
76. [Snapshot Array](https://www.internhack.in/learn/dsa/problem/snapshot-array) (Medium)
77. [String Compression](https://www.internhack.in/learn/dsa/problem/string-compression) (Medium)
78. [String to Integer (atoi)](https://www.internhack.in/learn/dsa/problem/string-to-integer-atoi) (Medium)
79. [Subarray Product Less Than K](https://www.internhack.in/learn/dsa/problem/subarray-product-less-than-k) (Medium)
80. [Subarray Sum Equals K](https://www.internhack.in/learn/dsa/problem/subarray-sum-equals-k) (Medium)
81. [Task Scheduler](https://www.internhack.in/learn/dsa/problem/task-scheduler) (Medium)
82. [Task Scheduler II](https://www.internhack.in/learn/dsa/problem/task-scheduler-ii) (Medium)
83. [The Maze](https://www.internhack.in/learn/dsa/problem/the-maze) (Medium)
84. [Top K Frequent Elements](https://www.internhack.in/learn/dsa/problem/top-k-frequent-elements) (Medium)
85. [Validate IP Address](https://www.internhack.in/learn/dsa/problem/validate-ip-address) (Medium)
86. [Verify Preorder Sequence in Binary Search Tree](https://www.internhack.in/learn/dsa/problem/verify-preorder-sequence-in-binary-search-tree) (Medium)
87. [Binary Tree Maximum Path Sum](https://www.internhack.in/learn/dsa/problem/binary-tree-maximum-path-sum) (Hard)
88. [Delete Duplicate Folders in System](https://www.internhack.in/learn/dsa/problem/delete-duplicate-folders-in-system) (Hard)
89. [Find Median from Data Stream](https://www.internhack.in/learn/dsa/problem/find-median-from-data-stream) (Hard)
90. [Integer to English Words](https://www.internhack.in/learn/dsa/problem/integer-to-english-words) (Hard)
91. [Max Points on a Line](https://www.internhack.in/learn/dsa/problem/max-points-on-a-line) (Hard)
92. [Maximum Number of Visible Points](https://www.internhack.in/learn/dsa/problem/maximum-number-of-visible-points) (Hard)
93. [Median of Two Sorted Arrays](https://www.internhack.in/learn/dsa/problem/median-of-two-sorted-arrays) (Hard)
94. [Merge k Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-k-sorted-lists) (Hard)
95. [Serialize and Deserialize Binary Tree](https://www.internhack.in/learn/dsa/problem/serialize-and-deserialize-binary-tree) (Hard)
96. [Sliding Puzzle](https://www.internhack.in/learn/dsa/problem/sliding-puzzle) (Hard)
97. [Sliding Window Maximum](https://www.internhack.in/learn/dsa/problem/sliding-window-maximum) (Hard)
98. [Special Binary String](https://www.internhack.in/learn/dsa/problem/special-binary-string) (Hard)
99. [The Skyline Problem](https://www.internhack.in/learn/dsa/problem/the-skyline-problem) (Hard)
100. [Trapping Rain Water](https://www.internhack.in/learn/dsa/problem/trapping-rain-water) (Hard)

## Prepare for the rest of the Nvidia 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)
- [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)
- [Paypal](https://www.internhack.in/learn/dsa/companies/paypal) (106)

## Related

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