Nvidia Interview Questions — 100 DSA Problems
94 problems with full solutions in Python, Java, C++, JavaScript, Go, Rust.
Most frequently asked Nvidia LeetCode questions for software engineering interviews.
- Last Stone Weight (EASY) — Array, Heap (Priority Queue)
- LRU Cache (MEDIUM) — Hash Table, Linked List, Design, Doubly-Linked List
- Group Anagrams (MEDIUM) — Array, Hash Table, String, Sorting
- Minimum Operations to Reduce an Integer to 0 (MEDIUM) — Dynamic Programming, Greedy, Bit Manipulation
- Special Binary String (HARD) — String, Recursion
- Best Time to Buy and Sell Stock (EASY) — Array, Dynamic Programming
- Two Sum (EASY) — Array, Hash Table
- Longest Substring Without Repeating Characters (MEDIUM) — Hash Table, String, Sliding Window
- Add Two Numbers (MEDIUM) — Linked List, Math, Recursion
- Maximum Subarray (MEDIUM) — Array, Divide and Conquer, Dynamic Programming
- Number of Islands (MEDIUM) — Array, Depth-First Search, Breadth-First Search, Union Find, Matrix
- Maximum Number of Visible Points (HARD) — Array, Math, Geometry, Sliding Window, Sorting
- Search in Rotated Sorted Array (MEDIUM) — Array, Binary Search
- Reverse Bits (EASY) — Divide and Conquer, Bit Manipulation
- Dot Product of Two Sparse Vectors (MEDIUM) — Array, Hash Table, Two Pointers, Design
- Valid Parentheses (EASY) — String, Stack
- Missing Number (EASY) — Array, Hash Table, Math, Binary Search, Bit Manipulation, Sorting
- Merge k Sorted Lists (HARD) — Linked List, Divide and Conquer, Heap (Priority Queue), Merge Sort
- Merge Intervals (MEDIUM) — Array, Sorting
- Move Zeroes (EASY) — Array, Two Pointers
- Task Scheduler II (MEDIUM) — Array, Hash Table, Simulation
- Fibonacci Number (EASY) — Math, Dynamic Programming, Recursion, Memoization
- Copy List with Random Pointer (MEDIUM) — Hash Table, Linked List
- Find Median from Data Stream (HARD) — Two Pointers, Design, Sorting, Heap (Priority Queue), Data Stream
- Rotate Image (MEDIUM) — Array, Math, Matrix
- Insert Delete GetRandom O(1) (MEDIUM) — Array, Hash Table, Math, Design, Randomized
- Rectangle Area (MEDIUM) — Math, Geometry
- String to Integer (atoi) (MEDIUM) — String
- Generate Parentheses (MEDIUM) — String, Dynamic Programming, Backtracking
- Trapping Rain Water (HARD) — Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack
- Find the Duplicate Number (MEDIUM) — Array, Two Pointers, Binary Search, Bit Manipulation
- Climbing Stairs (EASY) — Math, Dynamic Programming, Memoization
- Break a Palindrome (MEDIUM) — String, Greedy
- Kth Largest Element in an Array (MEDIUM) — Array, Divide and Conquer, Sorting, Heap (Priority Queue), Quickselect
- Binary Tree Maximum Path Sum (HARD) — Dynamic Programming, Tree, Depth-First Search, Binary Tree
- Snapshot Array (MEDIUM) — Array, Hash Table, Binary Search, Design
- Delete Duplicate Folders in System (HARD) — Array, Hash Table, String, Trie, Hash Function
- Spiral Matrix (MEDIUM) — Array, Matrix, Simulation
- Sliding Puzzle (HARD) — Array, Dynamic Programming, Backtracking, Breadth-First Search, Memoization, Matrix
- H-Index (MEDIUM) — Array, Sorting, Counting Sort
- Single Element in a Sorted Array (MEDIUM) — Array, Binary Search
- Maximal Square (MEDIUM) — Array, Dynamic Programming, Matrix
- Reverse Linked List II (MEDIUM) — Linked List
- Validate Binary Search Tree (MEDIUM) — Tree, Depth-First Search, Binary Search Tree, Binary Tree
- Intersection of Two Linked Lists (EASY) — Hash Table, Linked List, Two Pointers
- Longest Common Prefix (EASY) — String, Trie
- Ways to Make a Fair Array (MEDIUM) — Array, Prefix Sum
- Find Peak Element (MEDIUM) — Array, Binary Search
- Implement Trie (Prefix Tree) (MEDIUM) — Hash Table, String, Design, Trie
- Double a Number Represented as a Linked List (MEDIUM) — Linked List, Math, Stack
N
Nvidia
100 questions tracked94 with solutions
Frequency scoreSorted highest → lowest frequency✓ Our Solution = we have a detailed walkthrough
Showing 100 of 100 questions
1ArrayHeap (Priority Queue)
2Hash TableLinked ListDesignDoubly-Linked List
3ArrayHash TableStringSorting
4Dynamic ProgrammingGreedyBit Manipulation
8Hash TableStringSliding Window
10ArrayDivide and ConquerDynamic Programming
11ArrayDepth-First SearchBreadth-First SearchUnion Find+1
12ArrayMathGeometrySliding Window+1
14Divide and ConquerBit Manipulation
15MediumDot Product of Two Sparse Vectors
ArrayHash TableTwo PointersDesign
17ArrayHash TableMathBinary Search+2
18Linked ListDivide and ConquerHeap (Priority Queue)Merge Sort
21ArrayHash TableSimulation
22MathDynamic ProgrammingRecursionMemoization
24Two PointersDesignSortingHeap (Priority Queue)+1
26ArrayHash TableMathDesign+1
29StringDynamic ProgrammingBacktracking
30ArrayTwo PointersDynamic ProgrammingStack+1
31ArrayTwo PointersBinary SearchBit Manipulation
32MathDynamic ProgrammingMemoization
34ArrayDivide and ConquerSortingHeap (Priority Queue)+1
35Dynamic ProgrammingTreeDepth-First SearchBinary Tree
36ArrayHash TableBinary SearchDesign
37ArrayHash TableStringTrie+1
39ArrayDynamic ProgrammingBacktrackingBreadth-First Search+2
40ArraySortingCounting Sort
42ArrayDynamic ProgrammingMatrix
44TreeDepth-First SearchBinary Search TreeBinary Tree
45Hash TableLinked ListTwo Pointers
49Hash TableStringDesignTrie
52ArrayHash TableSliding Window
53ArrayHash TableMathGeometry
55MediumConvert Binary Search Tree to Sorted Doubly Linked List
Linked ListStackTreeDepth-First Search+3
56ArrayHash TableDivide and ConquerSorting+1
57StringTreeDepth-First SearchBreadth-First Search+2
58ArrayBinary SearchSliding WindowPrefix Sum
61Depth-First SearchBreadth-First SearchGraphTopological Sort
62Depth-First SearchBreadth-First SearchGraph
63MediumMinimum Knight Moves
Breadth-First Search
65ArrayHash TableLinked ListDesign+1
66Dynamic ProgrammingBit Manipulation
70ArrayHash TableTwo PointersBinary Search+1
71ArrayMathDesignRandomized
72MediumVerify Preorder Sequence in Binary Search Tree
ArrayStackTreeBinary Search Tree+3
73Linked ListMathReservoir SamplingRandomized
76ArrayDynamic ProgrammingBreadth-First Search
77Depth-First SearchBreadth-First SearchGraphTopological Sort
79ArrayDesignMatrixPrefix Sum
81MediumMeeting Rooms II
ArrayTwo PointersGreedySorting+2
87ArrayDynamic ProgrammingDepth-First SearchBreadth-First Search+4
89ArrayBinary SearchSliding WindowPrefix Sum
92Two PointersStringDynamic Programming
94Depth-First SearchBreadth-First SearchUnion FindGraph
95Dynamic ProgrammingTreeRecursionMemoization+1
97Hash TableStringSortingHeap (Priority Queue)+2
100MediumCount the Number of Good Subsequences
Hash TableMathStringCombinatorics+1