Interview questions
Find a company or topic. Read the sources, then practice.
Loading the question library…
Find a company or topic. Read the sources, then practice.
Loading the question library…
Showing 26–29
Given an n×n matrix, rotate it 90° clockwise in-place (no extra matrix allowed), i.e., rearrange the elements so each row becomes the corresponding column after…
Companies: Bloomberg, ByteDance, Meta, NVIDIA
Array · Math · Matrix
Last reported Feb 2025
Simulate days on an m×n grid where infected cells spread 4-directionally: each day identify all connected infected regions, compute for each the set of uninfected…
Companies: Flipkart, Uber
Array · Breadth-First Search · Depth-First Search · Matrix
Last reported Jan 2025
Given a grid of integers (positive heal, negative damage) and moves only right or down, find the minimum positive initial health so the running health…
Companies: Intuit
Array · Dynamic Programming · Matrix
Treat the boustrophedon-labeled board as a 1D graph of squares where from any square you can move 1–6 steps (dice roll), but landing on a…
Companies: Tesla
Array · Breadth-First Search · Matrix