This repository contains my solutions and resources on LeetCode Online Judge algorithm problems. Most of the solutions are derived from my own implementation, the problem discussion section and ninechapter.com.
All solutions are carefully cleaned and optimized, thus more readable and understandable!
Some resources related to LeetCode are in "Resources". More resources will be added.
Some other problems that worth taking a look are put in "Other" for reference.
- Level Categorization: Easy, Middle and Hard.
- Problem Description and Tags at the top for all Problems.
- Solution Explanation Provided.
- In-line Comment for key Points.
- Different Solutions for Comparison.
A table for all solutions, providing name, level, idea, code and frequency for each problem. Important and hard problems have bold title and key points are marked red. Great for reference and review purpose!
- Frequency: derived from online resources and my own interview experience.
- Idea: the description of the general idea of the solution.
- Code: key steps in implementation.
- Tips: summary of tricks and tips appeared in solutions.
- New Problems: put into a single page because frequency is unknown.
Current resources are as followed:
- Problems list of Clean Code Handbook published by LeetCode.
- An .xlsx file for frequency and solutions.
- Time and Space efficiency.
- Add new problems.
- Add more resources.
The MIT License (MIT)
Copyright (c) 2015 Yang Liu. http://freetymekiyan.github.io
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.