First, I reported my family background, started writing questions in high school, and was admitted to the School of Computer Science at Peking University in the algorithm competition. After graduating from a bachelor's and master's program, I got offers from companies such as NetEase, Renren, Alibaba, and FB, and finally chose to work in Silicon Valley in the United States. So far, more than 3,000 algorithm questions have been answered.
Without further ado, let’s get straight to the practical stuff. I present the "Common Interview Algorithm Template Cheatsheet" that I have worked on for 3 months and added and deleted 16 times. It can be downloaded directly from the second document in this warehouse.
This set of "Common Interview Algorithm Template Cheatsheet" has not a small amount of code, and the cases are not awesome, but it is absolutely classic and absolutely universal! I have also sorted out the usage conditions, time complexity, and code templates such as binary splitting, double pointers, sorting algorithms, binary trees, breadth-first search, and depth-first search.
In order to let everyone get as much help as possible from my Github, here are the usage methods:
1. Give this warehouse a star first , and then memorize the algorithm template I summarized (if you don’t want to spend time memorizing the template, don’t continue reading)
2. Follow the high-frequency questions in the directory below to practice (practice with the template, and you must learn to digest the knowledge so that you can draw inferences)
3. Finally, go to LintCode to find a high-frequency ladder from a large manufacturer for practice (don’t bb, you must be right to answer more questions with the template)
In 2014, I went to the United States to work at Facebook. In Silicon Valley, I found that Chinese people are under particularly high pressure to find jobs and face a lot of competition from whites and Indians. In order to help more people pass algorithm interviews at Google, Facebook, Ticktok and other companies, I summarized my more than 10 years of experience in answering questions and recorded a set of "Nine Chapters Algorithm Class" with only 9 chapters and 18 hours. Now 8 years have passed, this course has been iterated to 50 chapters and more than 100 hours. Hundreds of thousands of programmers have studied this course of mine and found jobs with an annual salary of one million.
This set of "Nine Chapters Algorithm Class" is chargeable, but I can also check out the free B-station algorithm learning video "Maximizing LeetCode in 1 Month" that I summarized first.
Interview frequently tested algorithm template
Algorithm test notes for Peking University masters
Binary tree search
Binary tree divide and conquer
Hash table
heap
dictionary tree
stack
linked list
Summary of knowledge points of line segment tree
50 questions that novice programming must answer
dichotomy
Bit operations
divide and conquer
double pointer
DictionaryMAP
And search the collection
Sorting algorithm
greedy algorithm
Ten Questions and Answers on Dynamic Programming
How to answer system design questions in interviews
Breadth first search
depth first search
)
100 must-answer questions for algorithm interviews
Array question
Google interview questions | Atomic counting
Google interview questions | Maximum sum of 3 non-repeating subarrays
Google interview questions | The longest word in the dictionary
Google interview questions | Find the leftmost node at the bottom of a binary tree
Google interview questions | Legal IP address