This repository contains LeetCode SQL solutions organized by difficulty and documented as Markdown files.
easy/medium/hard/
Each solution file is named with the LeetCode question number and title, for example:
easy/1050. Actors and Directors Who Cooperated At Least Three Times.mdmedium/176. Second Highest Salary.mdhard/262. Trips and Users.md
Each Markdown solution document typically contains:
- the LeetCode problem link
- the problem description
- table schema details
- sample input and expected output
- the SQL solution
- a short breakdown of the query logic
Problem statements, including premium questions, can be referenced from:
- Table names in the SQL queries are suffixed with the question number.
- The repository is now documentation-oriented, so solutions are stored as
.mdfiles instead of standalone.sqlfiles. - New solutions can be added in the same Markdown format as more problems are covered.
Miscellaneous SQL repository: https://github.com/cM2908/misc-sql
SQL blog: http://chintan-sql.blogspot.com
