Skip to main content
All Questions

Interpolate Data

Medium

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.

The log schema is as follows:

user_ideventtimestamp
intvarchardatetime

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