180_Consecutive Numbers
[medium]
Write a SQL query to find all numbers that appear at least three times consecutively.
For example, given the aboveLogs
table,1
is the only number that appears consecutively for at least three times.
Solution 1: Use INNER JOIN
beat 87%
Solution 2: Use Subquery
beat 6%
Last updated