LeetCode solutions

1258. Article Views I

My accepted SQL solution to LeetCode problem 1258, Article Views I, running in 357ms.

  • Difficulty: Easy
  • SQL
  • Runtime 357ms
  • Memory 0.0B

Read the problem on LeetCode View on GitHub

SQL

Accepted on LeetCode — runtime 357ms, memory 0.0B, accepted 2025-12-29.

sql
SELECT DISTINCT author_id AS id
FROM Views
WHERE author_id = viewer_id
ORDER BY id ASC

Source