Nvidia Interview Prep

Nvidia is the clearest example on this site of a company where the algorithm bar is not the hard part. Coding rounds sit around LeetCode medium, and interviewers often ask you to implement core logic from scratch rather than recognise a named problem. What goes deep is everything below the algorithm: the C and C++ memory model, pointers and alignment, cache behaviour, synchronisation, and why your code is slow on real hardware.

Hiring is team-first, which matters more here than at most companies. A CUDA libraries role, a display driver role, a compiler role, and a cloud services role share a recruiter and almost nothing else. The domain round is calibrated to what that specific team builds, so the single highest-value thing you can do is find out what the team works on and prepare that stack rather than a generic big tech loop.


Interview Process

Stage Duration Focus
Recruiter Screen 20-30 min Team match, domain, level
Hiring Manager Call 30-45 min What the team builds, your fit for that stack
Technical Phone Screen 45-60 min DSA plus C or C++ and OS fundamentals
Onsite Round 1 45-60 min Coding at medium, written from scratch
Onsite Round 2 45-60 min Memory model, pointers, concurrency, debugging
Onsite Round 3 45-60 min Domain deep dive: CUDA, drivers, compilers, or OS
Onsite Round 4 45-60 min Architecture or system design, plus behavioural

The domain round is where loops are won and lost. General software roles on cloud and internal tooling teams see a more conventional interview with system design and less low-level content. GPU, driver, firmware, and compiler teams push hard on hardware-aware reasoning and expect you to be fluent in the specific stack.

Reported loops run four to eight weeks, and senior roles sometimes add a final conversation with a director or distinguished engineer. Because hiring is per-team, a rejection often reflects domain mismatch rather than the bar, and recruiters do redirect candidates to other teams.


What Nvidia Actually Tests

Derived from 136 reported Nvidia-tagged problems. Difficulty mix:

Difficulty Count Share
Easy 32 24%
Medium 89 65%
Hard 15 11%

The list skews Easy and Medium. Speed and clean code matter more here than exotic algorithms.

Where those problems fall by pattern:

Rank Pattern Problems Share of list
1 Sliding Window & Two Pointers 19 14%
2 Dynamic Programming 16 12%
3 Arrays & Hashing 16 12%
4 Graphs 10 7%
5 Heap / Priority Queue 9 7%
6 Stack & Monotonic Stack 9 7%
7 Intervals, Greedy & Sorting 8 6%
8 Binary Search 8 6%
9 Linked List 8 6%
10 Strings 7 5%

Nvidia Signature Problems

These rank high on Nvidia’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.

# Problem Pattern Difficulty Also asked at Link
1 Special Binary String Divide and Conquer Hard 9 of 142 Solve →
2 Maximize Greatness of an Array Greedy + Two Pointers Medium 4 of 142 LeetCode →
3 Minimum Operations to Reduce an Integer to 0 Bit Manipulation + Greedy Medium 7 of 142 LeetCode →
4 Maximum Number of Visible Points Geometry + Sliding Window Hard 6 of 142 LeetCode →
5 Dot Product of Two Sparse Vectors Linear Algebra + Design Medium 12 of 142 Solve →
6 Find The Original Array of Prefix Xor Bit Manipulation Medium 3 of 142 LeetCode →
7 Rotate List Linked List + Two Pointers Medium 8 of 142 Solve →
8 Unique Paths II DP Medium 10 of 142 Solve →
9 Remove Stones to Minimize the Total Heap + Greedy Medium 4 of 142 LeetCode →
10 Rectangle Area Geometry Medium 7 of 142 LeetCode →
11 Task Scheduler II Simulation + Hash Table Medium 5 of 142 LeetCode →
12 Max Sum of a Pair With Equal Sum of Digits Heap Medium 6 of 142 LeetCode →
13 Fizz Buzz Multithreaded Concurrency Medium 3 of 142 LeetCode →
14 Linked List Random Node Reservoir Sampling + Randomized Medium 3 of 142 LeetCode →

If you are short on time, these carry more Nvidia-specific signal per hour than the universal top-100 lists.


Reported in the Last Six Months

The recency-filtered slice of Nvidia’s list, ranked by how often each was reported. Expect heavy overlap with the all-time classics — that overlap is the point, it means these stay in rotation.

# Problem Pattern Difficulty Link
1 Koko Eating Bananas Binary Search Medium Solve →
2 Restore IP Addresses Backtracking Medium Solve →
3 Best Time to Buy and Sell Stock DP Easy Solve →
4 Longest Consecutive Sequence Union-Find Medium Solve →
5 LRU Cache Doubly Linked List + Design Medium Solve →
6 Special Binary String Divide and Conquer Hard Solve →
7 Binary Subarrays With Sum Sliding Window + Prefix Sum Medium LeetCode →
8 Break a Palindrome Greedy Medium LeetCode →
9 Copy List with Random Pointer Linked List Medium LeetCode →
10 Design Circular Queue Queue + Linked List Medium Solve →
11 Group Anagrams Sorting + Hash Table Medium Solve →
12 Linked List Cycle Floyd Cycle + Linked List Easy Solve →
13 Merge k Sorted Lists Tournament Sort + Merge Sort Hard Solve →
14 Minimum Absolute Difference Sorting + Array Easy Solve →
15 Network Delay Time Dijkstra + Shortest Path Medium Solve →

System Design (HLD) Problems Asked at Nvidia

# Problem Difficulty Link
1 LLM Inference Serving Advanced Read →
2 Distributed Job Scheduler (GPU Cluster) Advanced Read →
3 Metrics and Monitoring System Intermediate Read →
4 Distributed Cache Intermediate Read →
5 Distributed Key-Value Store Advanced Read →
6 Message Queue Advanced Read →
7 Image and Video Processing Pipeline Intermediate Read →
8 Rate Limiter Beginner Read →
9 Unique ID Generator Beginner Read →

DSA Problems Asked at Nvidia

83 problems across 12 pattern groups. Each group is allocated in proportion to its real share of Nvidia’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. Showing the top 14 of 15 on the list.

# Problem Pattern Difficulty Link
1 Best Time to Buy and Sell Stock DP Easy Solve →
2 Maximum Subarray Divide and Conquer + DP Medium Solve →
3 Minimum Operations to Reduce an Integer to 0 Bit Manipulation + Greedy Medium LeetCode →
4 Trapping Rain Water Monotonic Stack + Two Pointers Hard Solve →
5 Unique Paths II DP Medium Solve →
6 Climbing Stairs Memoization + DP Easy Solve →
7 Fibonacci Number Memoization + DP Easy Solve →
8 House Robber DP Medium Solve →
9 Counting Bits Bit Manipulation + DP Easy Solve →
10 Jump Game Greedy + DP Medium Solve →
11 Longest Increasing Subsequence LIS + Binary Search Medium Solve →
12 Maximal Square DP Medium Solve →
13 Minimum Path Sum DP Medium Solve →
14 Unique Paths Combinatorics + DP Medium Solve →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. Showing the top 14 of 15 on the list.

# Problem Pattern Difficulty Link
15 Longest Substring Without Repeating Characters Sliding Window Medium Solve →
16 Maximize Greatness of an Array Greedy + Two Pointers Medium LeetCode →
17 Maximum Number of Visible Points Geometry + Sliding Window Hard LeetCode →
18 Container With Most Water Greedy + Two Pointers Medium Solve →
19 4Sum Two Pointers Medium Solve →
20 Reverse Words in a String Two Pointers Medium Solve →
21 Rotate List Linked List + Two Pointers Medium Solve →
22 3Sum Two Pointers Medium Solve →
23 Linked List Cycle Floyd Cycle + Linked List Easy Solve →
24 Merge Sorted Array Two Pointers Easy Solve →
25 Sort Colors Bubble Sort + Quicksort Medium Solve →
26 String Compression Two Pointers Medium Solve →
27 Move Zeroes Two Pointers Easy Solve →
28 Palindrome Linked List Linked List + Stack Easy Solve →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 9 on the list.

# Problem Pattern Difficulty Link
29 Two Sum Hash Table + Array Easy Solve →
30 Product of Array Except Self Prefix Sum Medium Solve →
31 Minimum Absolute Difference Sorting + Array Easy Solve →
32 Rotate Image Matrix + Math Medium Solve →
33 Subarray Sum Equals K Prefix Sum Medium Solve →
34 Rotting Oranges BFS Medium Solve →
35 Set Matrix Zeroes Matrix + Hash Table Medium Solve →
36 Spiral Matrix Simulation + Matrix Medium Solve →
37 Task Scheduler II Simulation + Hash Table Medium LeetCode →

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 7 on the list.

# Problem Pattern Difficulty Link
38 Number of Islands Union-Find + BFS Medium Solve →
39 Longest Consecutive Sequence Union-Find Medium Solve →
40 Course Schedule DAG + Topological Sort Medium Solve →
41 Course Schedule II Topological Sort + Graph Medium Solve →
42 Find the Celebrity Interactive + Graph Medium Solve →
43 Sliding Puzzle Heuristic Search + A* Search Hard LeetCode →
44 Clone Graph Graph + BFS Medium LeetCode →

Heap / Priority Queue

Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. All 7 on the list.

# Problem Pattern Difficulty Link
45 Merge k Sorted Lists Tournament Sort + Merge Sort Hard Solve →
46 Last Stone Weight Heap Easy Solve →
47 Top K Frequent Elements Quickselect + Bucket Sort Medium Solve →
48 Maximum Number of Events That Can Be Attended Heap + Greedy Medium Solve →
49 Remove Stones to Minimize the Total Heap + Greedy Medium LeetCode →
50 Kth Largest Element in an Array Quickselect + Divide and Conquer Medium Solve →
51 Max Sum of a Pair With Equal Sum of Digits Heap Medium LeetCode →

Design (Coding)

Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. All 5 on the list.

# Problem Pattern Difficulty Link
52 LRU Cache Doubly Linked List + Design Medium Solve →
53 Dot Product of Two Sparse Vectors Linear Algebra + Design Medium Solve →
54 Design Circular Queue Queue + Linked List Medium Solve →
55 Insert Delete GetRandom O(1) Randomized + Design Medium LeetCode →
56 Min Stack Design + Stack Medium Solve →

Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 5 on the list.

# Problem Pattern Difficulty Link
57 Search in Rotated Sorted Array Binary Search Medium Solve →
58 Find the Duplicate Number Pigeonhole Principle + Floyd Cycle Medium Solve →
59 Koko Eating Bananas Binary Search Medium Solve →
60 Missing Number Bit Manipulation + Binary Search Easy Solve →
61 Find Peak Element Binary Search Medium Solve →

Stack & Monotonic Stack

Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. All 5 on the list.

# Problem Pattern Difficulty Link
62 Valid Parentheses Bracket Sequences + Stack Easy Solve →
63 Asteroid Collision Stack Medium Solve →
64 Decode String Stack Medium Solve →
65 First Unique Character in a String Queue Easy Solve →
66 Add Two Numbers II Linked List + Stack Medium LeetCode →

Strings

Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 5 on the list.

# Problem Pattern Difficulty Link
67 Group Anagrams Sorting + Hash Table Medium Solve →
68 Fizz Buzz Simulation + Math Easy Solve →
69 String to Integer (atoi) String Medium Solve →
70 Valid Anagram Sorting + Hash Table Easy Solve →
71 Integer to English Words Recursion + Math Hard Solve →

Trees

Recursion discipline: what you return up, what you pass down. Follow-ups usually push from recursive to iterative. All 4 on the list.

# Problem Pattern Difficulty Link
72 Sliding Window Maximum Range Query + Monotonic Queue Hard Solve →
73 Serialize and Deserialize Binary Tree Binary Tree + Design Hard Solve →
74 All Nodes Distance K in Binary Tree Binary Tree + BFS Medium LeetCode →
75 All Possible Full Binary Trees Memoization + Binary Tree Medium LeetCode →

Linked List

Pointer surgery under time pressure. Draw the nodes before you write the reassignments. All 4 on the list.

# Problem Pattern Difficulty Link
76 Copy List with Random Pointer Linked List Medium LeetCode →
77 Add Two Numbers Linked List Medium Solve →
78 Reverse Linked List Linked List Easy Solve →
79 Reverse Linked List II Linked List Medium LeetCode →

Intervals, Greedy & Sorting

Sort, then make a local decision you can defend. Expect to justify why greedy is safe here. All 4 on the list.

# Problem Pattern Difficulty Link
80 Special Binary String Divide and Conquer Hard Solve →
81 Reverse Bits Divide and Conquer + Bit Manipulation Easy Solve →
82 Merge Intervals Quicksort Medium Solve →
83 Break a Palindrome Greedy Medium LeetCode →

Nvidia’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Dynamic Programming Very High 15 (17%) Best Time to Buy and Sell Stock, Maximum Subarray, Minimum Operations to Reduce an Integer to 0
2 Sliding Window & Two Pointers High 15 (17%) Longest Substring Without Repeating Characters, Maximize Greatness of an Array, Maximum Number of Visible Points
3 Arrays & Hashing High 9 (10%) Two Sum, Product of Array Except Self, Minimum Absolute Difference
4 Graphs Medium-High 7 (8%) Number of Islands, Longest Consecutive Sequence, Course Schedule
5 Heap / Priority Queue Medium-High 7 (8%) Merge k Sorted Lists, Last Stone Weight, Top K Frequent Elements
6 Design (Coding) Medium-High 5 (6%) LRU Cache, Dot Product of Two Sparse Vectors, Design Circular Queue
7 Binary Search Medium 5 (6%) Search in Rotated Sorted Array, Find the Duplicate Number, Koko Eating Bananas
8 Stack & Monotonic Stack Medium 5 (6%) Valid Parentheses, Asteroid Collision, Decode String
9 Strings Medium 5 (6%) Group Anagrams, Fizz Buzz, String to Integer (atoi)
10 Trees Medium 4 (4%) Sliding Window Maximum, Serialize and Deserialize Binary Tree, All Nodes Distance K in Binary Tree

How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Dynamic Programming, Sliding Window & Two Pointers, Arrays & Hashing covers the bulk of what Nvidia actually asks. The rest is insurance for the one round that goes somewhere unexpected.


Systems and Low-Level Topics by Role Family

Nvidia’s domain round is calibrated to the team. Use this to work out which column applies to you, then prepare that column properly rather than spreading thin across all of them.

Area GPU, CUDA, and deep learning performance Drivers, firmware, and OS Compilers and tooling Cloud and general software
Language C++ and CUDA C++ C and C++ C++, sometimes functional languages C++, Python, Go, Java
Memory Coalescing, shared memory and bank conflicts, unified memory DMA, MMIO, page tables, cache coherence SSA and register allocation, aliasing rules Allocator behaviour, GC, serialisation cost
Parallelism Warps, occupancy, divergence, streams, synchronisation Interrupts, deferred work, kernel preemption Loop transforms, vectorisation, scheduling Thread pools, async IO, distributed coordination
Debugging Profilers, kernel timing, numerical mismatch Crash dumps, tracing, hardware registers IR dumps, miscompilation, minimising a repro Logs, metrics, distributed tracing
Design prompts Inference serving, batching, multi-GPU data movement Device enumeration, power and thermal state, resource arbitration Pass pipelines, caching builds, incremental compilation Job schedulers, telemetry pipelines, caches

Across every column, the same meta-question keeps coming up: how would you measure this before changing it. An answer that names a profiler and a metric is treated very differently from an answer that names an optimisation.


Behavioural Round Questions

# Question
1 Walk me through a performance problem you diagnosed and what the actual bottleneck turned out to be.
2 Tell me about a bug that took you a long time to find. How did you narrow it down?
3 Tell me about a time you were wrong about the cause of an issue.
4 Tell me about a time you had to work against a hardware or platform constraint you could not change.
5 Tell me about a time you had to pick up an unfamiliar codebase quickly.
6 Tell me about a time you disagreed with a colleague about an optimisation.
7 How do you decide when something is fast enough to stop optimising?
8 Why this team at Nvidia, and what part of the stack do you want to own?

Nvidia’s behavioural questioning is mostly technical storytelling rather than a values framework. Interviewers want evidence of intellectual honesty: measuring before optimising, admitting what you got wrong, and knowing the difference between a theory and a profile. Bring numbers from real work.


14-Day Prep Plan

Built from the pattern ranking above, so the heaviest topics get the most time.

Day Focus Problems
1 Dynamic Programming (part 1) Best Time to Buy and Sell Stock, Maximum Subarray, Minimum Operations to Reduce an Integer to 0
2 Dynamic Programming (part 2) Trapping Rain Water, Unique Paths II, Climbing Stairs
3 Sliding Window & Two Pointers (part 1) Longest Substring Without Repeating Characters, Maximize Greatness of an Array, Maximum Number of Visible Points
4 Sliding Window & Two Pointers (part 2) Container With Most Water, 4Sum, Reverse Words in a String
5 Arrays & Hashing (part 1) Two Sum, Product of Array Except Self, Minimum Absolute Difference
6 Arrays & Hashing (part 2) Rotate Image, Subarray Sum Equals K, Rotting Oranges
7 Graphs Number of Islands, Longest Consecutive Sequence, Course Schedule
8 Heap / Priority Queue Merge k Sorted Lists, Last Stone Weight, Top K Frequent Elements
9 Design (Coding) LRU Cache, Dot Product of Two Sparse Vectors, Design Circular Queue
10 Binary Search Search in Rotated Sorted Array, Find the Duplicate Number, Koko Eating Bananas
11 Stack & Monotonic Stack Valid Parentheses, Asteroid Collision, Decode String
12 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
13 Revision Redo the problems you failed or needed a hint on.
14 Light review + rest Re-read your pattern notes. Sleep early.

Tips for Nvidia Interviews

  1. Find out the team before you prepare. A CUDA libraries loop and a cloud services loop share only the coding round. Ask the recruiter what the team ships and what languages they use, then prepare that.
  2. Write C or C++ by hand until it is comfortable. Expect to implement data structures from scratch with correct memory handling, no library shortcuts, and a clear account of ownership and lifetime.
  3. Know the memory hierarchy and why it decides performance. Cache lines and false sharing, alignment and padding, stack versus heap cost, locality. Nvidia expects you to reason about the machine, not just the complexity class.
  4. Prepare concurrency beyond “use a mutex”. Atomics and memory ordering, lock-free patterns, when a lock is cheaper than the clever alternative, how a data race actually manifests. Debugging questions are common.
  5. For GPU roles, be concrete about CUDA. Threads, warps and blocks, shared-memory tiling, memory coalescing, bank conflicts, occupancy, warp divergence, and how you would measure before and after a change.
  6. Medium DSA is the baseline, not the differentiator. The question data above skews medium. Hit that reliably, then spend the remaining time on systems depth, which is where the loop is actually decided.
  7. Bring a profiling story. Being able to describe a bottleneck you measured, the fix, and the number it moved is worth more in these rounds than any single algorithm.

Other Company Prep


Round structure and domain emphasis reflect commonly reported candidate experiences rather than published Nvidia documentation. Nvidia hires per team, so loop length, round count, and technical focus vary widely between orgs. Confirm the shape with your recruiter.