Available question text
Pivot the weather table so each row is a month and each distinct city becomes its own column containing that city's temperature for that month. In other words, group by month and transpose city values into separate columns mapped to their temperatures.
Related questions
Continue with questions that share topics or the same question type.
- Reshape Data Concatenate
Coding
- Reshape Data Melt
Coding
- 2 easy questions. Basic data structures/algorithm.
Coding
- All O`one Data Structure
Coding · Design · Doubly-Linked List · Hash Table
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 2889. Reshape Data: Pivot
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source