LeetCode solution to a problem Summary

Click the link address open source


Now, for the technical staff (soft opening, algorithms, etc.) written in the job search process is essential (except free written test, most people need written), written while the general composition is selected, fill in the blank, short answer, the programming problem (this part is very important), so brush theme is essential; for graduating students job search needs more crazy brush problem, because usually have their own research tasks, but it is recommended that individuals should brush problems step by step , prepared in advance, so that you can compare easily deal with this part of the programming problem, rather than focus only on the question brush it every day; for people who have to work does not mean that no longer need to brush the question, and will even quit there are questions of assessment algorithm, so both for fresh graduates or serving officers, finding a job requires some arithmetic ability, in order to reduce the occupancy time each day to brush the question, then we can do is brush the problem early layout tasks, will come to work prepare in advance, so even if only a question every day, according to count approximately 1 to 2 years time job, so when looking for a job at will 300 to 600 of the subject.

LeetCode Solution

LeetCode currently has more than 1,000 questions, the official website of different kinds of questions classified according to the number of each type are arranged from more to less subject, generally distributed as follows:

  • Array
  • Dynamic Programming
  • Math
  • String
  • Tree
  • Hash Table
  • Depth First Search
  • Binary Search
  • Greedy
  • Two Pointers
  • Breadth First Search
  • Stack
  • Backtracking
  • Design
  • Linked List
  • Sort
  • Bit Manipulation
  • Graph
  • Heap
  • Union Find
  • Sliding Window
  • Divide and Conquer
  • Trie
  • Recursion
  • Ordered Map
  • Segment Tree
  • Queue
  • Minimax
  • Binary Indexed Tree
  • Random
  • Topological Sort
  • Brainteaser
  • Geometry
  • Line Sweep
  • Binary Search Tree
  • Rejection Sampling
  • Reservoir Sampling
  • Memoization

Each type of title contained in the title are listed which

Click on the title to view the topic corresponding to the example given of my own source code, including the title of the topic description (from LeetCode official), then the problem-solving ideas (personal opinion), as follows

Followed by the subject source is the corresponding portion (Personal Solution)


This open source code is mainly brush recording personal questions during the problem-solving ideas purposes, but also as his follow-up to quickly find, read, recall problem-solving purposes, the method may not be perfect, will gradually improve, I hope the person determined to be able to propose valuable suggestions for improvement, I follow the problem-solving ideas, source code, etc. will continue to update the warehouse, more details click on the link.

Leave a Reply