Skip to main content

Interpolate Data

MediumPremium

You have a log of user app behavior, but some log records are recorded more than once, and some records are missing timestamps. Given that the logs are recorded in chronological order, remove any duplicate records and fill in the missing timestamps by interpolating the data.

Because we know that the log data is sequential, using interpolation to fill up timestamp information is the logical choice.

The log schema is as follows:

user_ideventtimestamp
intvarchardatetime

Your result should be in the same format but with no missing values.