Available question text
Given an ordered table where some column values are NULL, replace each NULL with the most recent preceding non-NULL value (usually within the same group). This is solved with SQL window functions or correlated subqueries that compute a running "last known" value based on the row order (and handle leading NULLs appropriately).
Related questions
Continue with questions that share topics or the same question type.
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 2388. Change Null Values in a Table to the Previous Value
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source