Fetching algorithms...
Fetching algorithms...
| id | num |
|---|---|
| 1 | 1 |
| 2 | 1 |
| 3 | 1 |
| 4 | 2 |
| 5 | 1 |
| 6 | 2 |
| 7 | 2 |
| ConsecutiveNums |
|---|
| 1 |
In the given Logs table, the number '1' appears consecutively at IDs 1, 2, and 3. This satisfies the condition of appearing at least three times consecutively.
The number '2' appears at IDs 4, and then again at IDs 6, 7. It does not appear three times consecutively.
Therefore, '1' is the only number that meets the criteria, and it is returned as ConsecutiveNums.