FastPrepBuild a Bird’s-Eye-View Height Grid
Problems/Build a Bird’s-Eye-View Height Grid

Build a Bird’s-Eye-View Height Grid

NVIDIA logoNVIDIA● MediumFULLTIMEPHONE SCREEN

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: The autonomous-vehicle ML interview, in an NVIDIA phone screen for a full-time role, asks for a rough BEV module. It does not say what the inputs or layers are. Here we use rasterization of the maximum height in a point cloud, with limits. The report does not describe the camera or learned feature modules.

Our version is about 50% the same as the reported question.

Implement a bounded bird’s-eye-view module for 3D points.

For this exercise, assume a point cloud supplies integer triples [x,y,z], where x and y locate a point on the ground plane and z is its nonnegative height. Produce a rows by cols maximum-height grid. The ground-plane origin is (minX,minY) and each square cell has positive side length cellSize.

For this exercise, row r and column c cover minX+c*cellSize <= x < minX+(c+1)*cellSize and minY+r*cellSize <= y < minY+(r+1)*cellSize. Return the maximum z of all points inside each cell, or -1 if the cell is empty. Ignore points outside the grid. Repeated points contribute the same height and do not require special treatment. This practice version uses point-cloud rasterization; learned camera-to-BEV feature modules are outside scope.

Function

birdEyeView(points: int[][], rows: int, cols: int, minX: int, minY: int, cellSize: int) → int[][]

Examples

Example 1

points = [[0,0,2],[1,1,5],[2,0,7],[0,2,3]]rows = 2cols = 2minX = 0minY = 0cellSize = 2return = [[5,7],[3,-1]]

The first two points share cell [0][0], whose maximum height is 5. Columns follow x; rows follow y.

Example 2

points = [[-2,-2,0],[-1,-1,4],[0,0,9],[2,0,20]]rows = 2cols = 2minX = -2minY = -2cellSize = 2return = [[4,-1],[-1,9]]

Negative world coordinates are allowed. The point at x=2 is on the exclusive outer edge and is ignored.

Example 3

points = []rows = 1cols = 2minX = 0minY = 0cellSize = 1return = [[-1,-1]]

Cells with no points contain -1, including an empty input cloud.

Constraints

  • For this exercise, assume 0 <= points.length <= 10000, with exactly three integers per point.
  • 1 <= rows,cols <= 200, rows*cols <= 1024 and 1 <= cellSize <= 10000.
  • Point x/y coordinates and the origin lie in [-1000000,1000000]; heights lie in [0,1000000].

More NVIDIA Phone Screen questions

  • Network Layer Execution OrderPHONE SCREEN · Seen Nov 2026
  • Paged KV Cache AccessPHONE SCREEN · Seen Nov 2026
  • Sliding Window Attention over a KV CachePHONE SCREEN · Seen Nov 2026
  • Summarize Server Healthcheck LogsPHONE SCREEN · Seen Oct 2026
  • Hash Partition OffsetsPHONE SCREEN · Seen Oct 2026
  • Filter Paginated Medical RecordsPHONE SCREEN · Seen Oct 2026
  • Least Frequently Used CachePHONE SCREEN · Seen Oct 2026
  • Parallel String Counts with a Custom Hash TablePHONE SCREEN · Seen Oct 2026
  • Simulate a Reference-Counted Smart PointerPHONE SCREEN · Seen Aug 2026
  • Streaming Top-K Frequent ElementsPHONE SCREEN · Seen Aug 2026

Similar questions at other companies

  • Apply a 2048 Board MoveGlean · PHONE SCREENGlean interview questions
  • Spiral Order with ObstaclesTemu · PHONE SCREENTemu interview questions
  • Incremental Hard Attention with a KV CacheOpenAI · PHONE SCREEN · ONSITE INTERVIEWOpenAI interview questions
  • Spiral Matrix TraversalByteDance · PHONE SCREENByteDance interview questions
  • S-Shaped Matrix TraversalFox Corporation · PHONE SCREEN
  • Longest Consecutive Same-Color LineGoogle · PHONE SCREENGoogle interview questions
  • Process Minesweeper Game OperationsAmperity · PHONE SCREENAmperity interview questions
  • Diagonal TraverseHive · PHONE SCREENHive interview questions
  • Game of Life on a Finite and an Infinite BoardCitadel · PHONE SCREENCitadel interview questions
  • Multi-Channel Valid ConvolutionTesla · PHONE SCREENTesla interview questions

NVIDIA interview experiences

  • NVIDIA Full-Time SWE Onsite Scheduling: 1 Experience
  • NVIDIA OA: What It Tests (2026)
  • NVIDIA DevOps, QA and Infra Intern Interviews: 12 Experiences
  • NVIDIA Ignite Internship OA Experience
  • NVIDIA Software Intern Interview Questions: 9 Experiences
  • NVIDIA Ignite SWE Intern OA Questions: 6 Experiences
All NVIDIA interview questionsSee NVIDIA hiring insights
Saved
class Solution {
    public int[][] birdEyeView(int[][] points, int rows, int cols, int minX, int minY, int cellSize) {
        // Write your code here
    }
}
Checking account…