LeetSol is the compilation of solutions to the problems on LeetCode (https://leetcode.com/problemset/algorithms/). Most of the solutions are implemented using C++ but some are in C as well. All of these solutions have been tested with the LeetCode submission process.
The aim of this repository is to be the single point for checking solution to the problems. These solutions might not be perfect but cetrainly provide an alternative thought and way of implementation. Suggestions for improvement are highly appreciated.
Revisit Column has been marked with '*' or 'Y' in the cases where the proposed solution was not the best in runtime in comparison to other submissions.
SQL Puzzles
Num | Problem | Tags | Solution | Revisit | Notes |
---|---|---|---|---|---|
1 | [Employees earning more than their Managers] (https://leetcode.com/problems/employees-earning-more-than-their-managers/) | SQL Variables | [Solution] (https://github.com/gitvipin/LeetSol/blob/master/db/sql/EmpMngrSalary.sql) | Y | |
2 | [Duplicate Emails] (https://leetcode.com/problems/duplicate-emails/) | SQL, Self Join | [Solution] (https://github.com/gitvipin/LeetSol/blob/master/db/sql/duplicateEmails.sql) | Y | |
3 | [Customers Who Never Order] (https://leetcode.com/problems/customers-who-never-order/) | SQL, Self Join | [Solution] (https://github.com/gitvipin/LeetSol/blob/master/db/sql/nonPayingCustomers.sql) | Y |