[summary] Java collection (Set, List, Queue)

Java collections brief introduction Java collections can be roughly divided into four systems: set, list, Queue and map. Set represents unordered and unrepeatable collections; List represents an ordered and repeated set; Map represents a set with mapping relationship, and Java 5 adds a Queue system set to represent a Queue set implementation ...

Posted by nickdd on Tue, 21 Sep 2021 21:54:37 +0200

Record some questions asked to write in the interview and other favorite questions: the longest palindrome substring + the longest substring without repeated characters + the longest common substring

1. Question 5 of the longest palindrome substring force deduction Substring: substring must be continuous, which is different from the concept of subsequence Subsequence: Where the violent solution can be optimized: palindromes are judged only when the length of the substring is > the current maximum length, Is there anything that can be ...

Posted by bmyster on Tue, 21 Sep 2021 11:14:33 +0200

Love and kill each other with KMP algorithm ---- deeply understand and remember KMP algorithm (auspicious solution)

Introduction: today, I was laughed by this question and woke up by this question. It turns out that I haven't really understood KMP algorithm Let's talk about how interesting this problem is: I: For those who are familiar with object-oriented encapsulation, only one line of code is needed to solve this problem. Hahaha, I was laughed at. The fo ...

Posted by intercampus on Tue, 21 Sep 2021 07:49:17 +0200

Spring Principles - Spring's most frequently used feature-dependent injection, the source of which must be known; this is the core of our daily development; understand the source; this is enough;

@TOC # Spring Series Record every step in the program u auth:huf Reply: In the front of the article, I will reply to some students'questions. Note that if the return return value is not written when using InstantiationAwareBeanPostProcessor;This is in the process of creating objects;This will cause the @Autowired injection inside the object ...

Posted by UseeHere on Mon, 20 Sep 2021 18:33:53 +0200

Detailed explanation of LRU algorithm

Conceptual understanding 1.LRU is the abbreviation of Least Recently Used, that is, the Least Recently Used page replacement algorithm. It serves the virtual page storage management and makes decisions according to the usage of pages after they are transferred into memory. Since it is impossible to predict the future usage of each page, onl ...

Posted by dewknight on Mon, 20 Sep 2021 00:24:27 +0200

Online Exercise for True Question of Interview in Shilala sql Internet Factory

1. sql Title Brushing There are two main purposes to do this topic, preparing for the interview and understanding the business logic and thinking style of the data analyst in practice. Most of the data analysts are biased toward the business side, with the indicators increasing or decreasing, how to analyze, from which angles to analyze, c ...

Posted by kabucek on Mon, 20 Sep 2021 00:09:34 +0200

Animation illustration of a high-frequency interview question of an Internet factory - relative ranking of arrays

preface Hello, I'm Xiaoxiong, a programmer from Huawei. Today, I'll bring you a high-frequency interview question related to arrays. This question is the interview question of big companies such as Google, Tencent, apple and Amazon, that is, the 1122 question on force buckle - the relative ranking of arrays. This paper mainly introduces the s ...

Posted by Trojan on Fri, 17 Sep 2021 22:22:52 +0200

2021-9-7 299. Number guessing game (Hash Table + secondary traversal, bucket + primary traversal)

Note: Title: You are playing balls and cows with your friends. The rules of the game are as follows: You write a secret number and ask your friend to guess what the number is. Every time a friend guesses, you will give him a hint to tell him how many digits in the guessed number belong to the number and the exact position are guessed correctl ...

Posted by dzm on Fri, 10 Sep 2021 11:17:57 +0200

Java Foundation

array 1. Memory analysis: Array memory analysis: 2. Basic characteristics of array The length is determined. Once created, the size cannot be changed. If the boundary is exceeded, an error is reported: ArrayIndexOutofBoundsExceptionElements must be of the same typeThe elements in the array can be any data type, including basic and refer ...

Posted by stormx on Fri, 10 Sep 2021 03:22:19 +0200

Annotation, reflection, dynamic proxy

Annotation, reflection, dynamic proxy The knowledge points involved are annotation, reflection, dynamic agent, AOP, Lombok, agent mode and ` builder mode``````````` Q: Have you ever used annotations in your work? Let's briefly introduce them. A: Annotations are often used in daily development, including @ overridden, @ Deprecated provided by ...

Posted by aragon1337 on Wed, 08 Sep 2021 06:46:38 +0200