Available question text
Find every distinct sum of the border cells of all 45°-rotated square (rhombus) shapes that fit in an m×n grid (including size-0 single-cell rhombi) and return the largest three distinct sums in descending order. Efficient solutions iterate possible centers and sizes while using diagonal traversal or diagonal prefix sums to compute each rhombus border sum quickly (m,n ≤ 50).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1878. Get Biggest Three Rhombus Sums in a Grid
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source