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
- Updated
Read the problem on LeetCode View on GitHub
The problem statement is LeetCode’s and stays on their site. What follows is my accepted solution.
SQL
Accepted on LeetCode — runtime 357ms, memory 0.0B, accepted 2025-12-29.
SELECT DISTINCT author_id AS id
FROM Views
WHERE author_id = viewer_id
ORDER BY id ASC