Showing 2 questions
Given a maximum possible height limit and a list of building restrictions, determine the tallest possible height you can build for any single building in the city. The heights must be adjusted so that the difference in height between any two adjacent buildings is at most one.
#1. Maximum Building Height
Imagine a spiral path expanding outwards from a starting cell within a matrix. The goal is to find the coordinates of all cells visited on this spiral path until you've reached a specified number of cells, including those outside the original matrix boundaries.
#2. Spiral Matrix III
Page 1 of 1 · 2 total