Skip to content

Commit 5c7371c

Browse files
committed
Time: 524 ms (66.06%) | Memory: 0B (100.00%) - LeetSync
1 parent efd69c9 commit 5c7371c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SELECT DISTINCT l1.num AS ConsecutiveNums FROM Logs l1
2+
JOIN Logs l2 ON l1.id = l2.id - 1
3+
JOIN Logs l3 ON l2.id = l3.id - 1
4+
WHERE l1.num = l2.num AND l2.num = l3.num;

0 commit comments

Comments
 (0)