YourAlly

NVIDIA SDE-3 coding interview questions

These are the 6 coding questions YourAlly has tagged for NVIDIA at SDE-3. SDE-3 is the common India title for this level. YourAlly treats it as Senior, the same level as Google L5, Meta E5 and Amazon L6.

A coding round at a large tech company usually runs 45 to 60 minutes with one or two problems. You write code that runs, test it on your own examples and state its time and space cost. At this level the bar is a correct, tested solution you reach mostly on your own, with the trade-offs said out loud.

Practice a mock NVIDIA SDE-3 coding loopPractice NVIDIA coding questions

Convert COO Entries to CSRFree to read

Given a sparse matrix as unordered coordinate triples (row, col, value) that may repeat, build its compressed sparse row form. Sum repeated cells, drop cells whose sum is 0, and sort columns within each row.

Input: num_rows = 3, rows = [0,2,1,0], cols = [1,0,2,0], values = [5,7,3,2] Output: [[0,2,3,4],[0,1,2,0],[2,5,3,7]]

What a strong answer covers

  • Duplicate summing keyed by (row, col)
  • Dropping cells that sum to zero
  • Row counts converted to row_ptr by prefix sum
  • Columns sorted within each row
  • Correct row_ptr length of num_rows + 1

5 more coding questions

  1. Buddy Allocator for Device Memory Locked
  2. Dynamic Batcher Completion Times Locked
  3. Pipeline Stages Under a Memory Cap Locked
  4. Shared Memory Bank Transactions Locked
  5. Stream Kernel Makespan Locked

Sign up free to practice all 6

Related pages

More NVIDIA SDE-3 rounds

NVIDIA coding at other levels

Other companies at this level