Git Product home page Git Product logo

leetcode-sol-res's Introduction

LeetCode-Sol-Res

Join the chat at https://gitter.im/FreeTymeKiyan/LeetCode-Sol-Res

This repository contains solutions and resources for LeetCode algorithm problems.

The solutions are derived from my own thinking and the discussion. They are cleaned and optimized carefully, thus more readable and understandable!

An excel table for quick review before interview is also provided in resources directory.

Also want to access all codes on your Android phone? Get APAS from GooglePlay here!

Features

Readable Solutions

  • Level Categorization: Easy, Middle and Hard.
  • Problem Description and Tags on Top.
  • Clear Solution Explanation.
  • In-line Comment for Key Points.
  • Different Solutions for Comparison.
  • Test cases to help prove correctness.
  • Importable and compilable with IntelliJ.

Solutions Table for Quick Review

A table for all problems. Great for reference and review purpose!

This table has 5 sheets:

  1. LeetCode Summary(1 ~ 154)
  2. New Free Problems(155 ~ Latest)
  3. New Problems in Book(156 ~ 159, 161, 163, 167, 170, 186)
  4. Tips
  5. Other Classic Problems

Each problem row has name, level, idea, code and frequency analysis.

  • Frequency: derived from online resources and 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.

Important and hard problems have bold title and key points are marked red.

Other Problems

LeetCode problems are not always enough. Some other popular or classic algorithm problems that worth taking a look are put in "src/main/java/com/freetymekiyan/algorithms/other/" directory for your reference.

Resources

Current resources are as followed:

  1. Problems list of Clean Code Handbook published by LeetCode.
  2. An .xlsx file for frequency and solutions.

Todo

  1. Time and Space efficiency analysis.
  2. Add new problems.
  3. Add more resources.

References

  1. LeetCode Online Judge

License

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.

leetcode-sol-res's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leetcode-sol-res's Issues

Test Smell: it is a bad practice to mix test code with production code

Hi!

We notice that you mix the production code and the corresponding test code into the same file.
For example,
image

In fact, it is a bad practice for code organization.
The best practice is to separate test code and production code and use a parallel folder structure to place them, respectively.
So, we kindly suggest you re-organizing your code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.