Snowflake·Software Engineer·Online Assessment (OA)
- Given Q queries, each with a (rows, cols) pair, compute for each query the count of cells on or above the main diagonal of a min(rows, cols) by min(rows, cols) sub-rectangle.
“The key is recognizing you only care about the smaller dimension.”