Detect bid sniping on an auction site using a sliding time window.
Unlock detailed company stats for this questionUpgrade
Bids arrive on an auction site in chronological order. For each incoming bid, determine two things: (1) whether the current user now has at least K bids within the last W seconds (a sliding time window), and (2) the smallest user ID that currently qualifies as sniping at that moment.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
