Coder Social home page Coder Social logo

csimplestring / leetemplate Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 27 KB

This project aims to offer a set of commonly-used data structures/algorithm templates. Those data structures is not covered by Java Standard Library yet.

Java 100.00%
algorithms-and-data-structures leetcode

leetemplate's Introduction

Leetemplate

This project comes from my daily hobby of practising Leetcode. After finished solving around 200 problems, I somehow realized those problems follow a set of patterns. In order to better organise my knowledge and make those 'patterns' tangible, I started writing them down.

This project does not contain any solutions of Leetcode or solve any Leetcode problems directly, it is a set of highly conclusive templates for common algorithms and data-structures. As long as you understand those core patterns, you can apply those core ideas to efficiently solve problems.

Another goal of this project is to offer a set of algorithms/data-structures templates with a decent code quality, so they can be used in production services, helping developers to solve some real problems in their daily work. That is also why the focus of this project is not purely showing the theory of algorithms, but also emphasize the code usability.

Featured by:

  • zero dependency
  • detailed explanation
  • generic parameterized templates for easy usage
  • all are examined by Leetcode problems, which gives more confidence

What are done

  • Graph
    • Topology Sort
    • Cutting Edge
  • Array
    • Binary Search Array
    • Prefix Sum Array
  • Min/Max Heap
    • Top K Frequency List
  • Queue
    • Monotonic Queue
  • Tree
    • Binary Tree
      • deserialize/serialize
  • Union Find
    • Generic Union Find Set
    • Integer Union Find Set
  • String
    • Trie

leetemplate's People

Watchers

 avatar  avatar

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.