Leetcode 2890. Reshape Data: Melt
Reshape a table from wide to long by unpivoting the quarter_1–quarter_4 columns into rows so each record contains product, quarter, and sales. This is essentially a melt/unpivot operation that converts quarterly columns into a single "quarter" column with corresponding "sales" values.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.