Single Query Type, Max Revenue in K Minutes

Asked at Snowflake · Coding Questions · Difficulty: Easy · Last asked Jan 17, 2026

A virtual warehouse can execute one of `n` query types. Each query type `i` has a per-run duration `duration_i` and a per-run revenue `revenue_i`.

Loading the problem…