Giter VIP home page Giter VIP logo

leetcode's Introduction

TODO

Need to add a "keyword" feature of readme file so that you can quickly review the things you have learnt. e.g, 771: set, unordered_set, initialize

Why this project?


  1. Practice the data structure and algorithm for C++ (may learn java)

  2. Not only get a true solution, but also OPTIMIZE memory and speed

  3. Crack the interview

  4. Learn git and other stuff

  5. Just cool

How?


  1. Sort the leetcode problems by acceptance

  2. Figure out an intuitive solution, without considering time and memory

  3. Figure out a better solution that requires less complexity and compare them

  4. Check the discussion section and see how the best answer does

  5. Close the discussion and do it again!

  6. Take down codes and notes for that problem, and push to this project!

Details about taking notes


  1. Why I got wrong? (if necessary)

  2. Complexity analysis, if necessary

  3. Syntax (like initialization, compare function and so on)

  4. Use key words so that convenient to review!

Reference to this good template

Note that codes cannot run locally. Should copy and paste on leetcode and run.

Keywords (for review)

344: post incremental, pre incremental, swap

461: binary number, bit manipulation, AND, OR, XOR, logic

463: graph, math, 2D vector

537: string manipulation, stoi(int to string), to_string(int to string), buffer, stringstream

654: tree, binary tree, recursion, pointer, reference, pass by pointer, pass by reference, syntax, dynamic object, dynamic memory

728: char to int, bit manipulation, break loop

771: set, unordered_set, initialize

797: DFS, recursive, pass by reference, pass by copy, helper function. auto, iterator

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.