Search
⌘K

Leetcode 1294. Weather Type in Each Country

Given a table of city-level weather observations (country, city, weather_type), compute a single weather type for each country by aggregating city reports — typically returning the most frequent type (or the unique type if all cities agree). This tests grouping/aggregation and simple tie-resolution skills (COUNT/GROUP BY or window functions).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.