HashMap underlying principle and jdk1 8 source code interpretation [spitting blood and sorting out 1.3w long text]

1, Foreword Write in front: it took a day to sort out the data collected by small codewords. It's helpful for you. One key three times in a row. Ha, thank you!! HashMap is often encountered in our daily development. The source code and underlying principle of HashMap must be asked in the interview. Therefore, we should master it, which is ...

Added by vweston on Thu, 17 Feb 2022 16:03:07 +0200

Detailed binary tree classical basic algorithm

Binary tree is a common data structure in our daily learning. During the interview and study, we will inevitably encounter some algorithm problems related to binary tree. Today, I brought you some classic binary tree basic algorithm problems. Let's have a look! catalogue 1. Check whether the two trees are the same ① Title Description ② tr ...

Added by swissmant on Wed, 16 Feb 2022 19:50:30 +0200

Handwriting a thread pool, take you to learn the implementation principle of ThreadPoolExecutor thread pool

Absrtact: starting from the handwriting thread pool, gradually analyze how these codes are implemented in the Java thread pool. This article is shared from Huawei cloud community< Handwritten thread pool, compare and learn the implementation principle of ThreadPoolExecutor thread pool! >, author: Xiao Fu Ge. Thanks for the plane, note ...

Added by brucensal on Mon, 14 Feb 2022 06:12:20 +0200

Java generic explanation, the most complete graphic explanation in history!

Generics play an important role in java, which can be seen in both open source framework and JDK source code. It is no exaggeration to say that generics are essential elements in general design, so it is a required course to truly understand and correctly use generics. 1: Generic essence Java generics is a new feature introduced in JDK ...

Added by cornelalexa on Mon, 14 Feb 2022 06:03:22 +0200

Leetcode algorithm interview sprint practice 15 (binary search tree)

177. Convert the sorted array into a binary search tree with the lowest height Give a sort array (from small to large) and convert it into a binary search tree with the smallest height. class Solution: """ @param: A: an integer array @return: A tree node """ def sortedArrayToBST(self, A): # write your code her ...

Added by Kunax on Sat, 12 Feb 2022 07:00:32 +0200

Implementing TinyWebServer from scratch

Original author: https://zhuanlan.zhihu.com/p/364044293   From 0 to server development -- TinyWebServer preface: Project code for modification, complete annotation and addition of functions: https://github.com/white0dew/WebServer What is it—— C + + lightweight Web server under Linux helps beginners quickly practice network pr ...

Added by DavidP123 on Fri, 11 Feb 2022 23:37:11 +0200

python basic interview questions

Deep copy and shallow copy Shallow copy is to copy only the first layer of the object. If there is a variable type reference in the first layer, if the variable type changes, the copied object will also change. For example a = [1, 2, [1,2]] b = copy.copy(a) # Here, the final copy of both copy and list generated for loop slices is a sh ...

Added by nilesh on Fri, 11 Feb 2022 23:31:10 +0200

What advanced developers can learn from beginners

In the past few years, I have the luxury of working and mentoring with a considerable number of beginners. Although I have clearly witnessed a considerable part of my programming failure, things are not as black and white as they seem. Among beginners, I always see some patterns and behaviors. While some of these behaviors are misleading and ha ...

Added by LTJason on Fri, 11 Feb 2022 12:04:46 +0200

Analyze the way out of Android development in the future, Android interview questions and analysis

preface As the saying goes, "born of hardship, die of happiness", in fact, most middle-aged crises are produced in happiness. Some people may retort, "as you say, I still have to struggle. If I don't struggle, I will die. Isn't it wrong to choose a comfortable life? Don't I have the right to choose my own way of life?" Pe ...

Added by Nytemare on Fri, 11 Feb 2022 08:12:46 +0200

Package output results

catalogue After the execution of SQL statements in MyBatis, the processing of results     1. resultType result type refers to the java object that the data is converted to after the sql statement is executed. The java type is arbitrary     2. Alias the resultType of the returned result     3. Save q ...

Added by paullb on Fri, 11 Feb 2022 07:45:04 +0200