[daily practice of Android spring moves] LeetCode Hot 5 questions + design mode

overview LeetCode Hot: Full Permutation, rotating image, letter ectopic word grouping, maximum subarray and, jumping game Design mode: adapter mode, decorator mode, agent mode, command mode and observer mode LeetCode Hot 2.21 full arrangement Given an array nums without duplicate numbers, all possible permutations are returned. You can ...

Added by dfownz on Thu, 10 Feb 2022 20:51:13 +0200

Use the Function interface in Java 8 to eliminate if Else (a very novel way of writing)

Source: Juejin cn/post/7011435192803917831If is often used in the development process else... Judge, throw exceptions, branch processing and other operations. These if else... Flooding in the code seriously affects the beauty of the code. At this time, we can use the Function interface of Java 8 to eliminate if else.... if (...){ throw new ...

Added by KirstyScott on Thu, 10 Feb 2022 20:36:02 +0200

Classic sorting algorithm of Java

1, Bubble sorting 1. Algorithm idea: Compare adjacent elements. If the first is larger than the second, exchange the two elements.Start from the first element and then compare the two adjacent elements successively until the last one is compared, so that the last element is the largest element.Again, start from the first element and compare t ...

Added by ifm1989 on Thu, 10 Feb 2022 19:30:09 +0200

Oppo java interview questions, java calls the client of the micro service interface

preface Whether students or people who have worked, I think they all have the same dream: enter a big factory! Seeing that 2021 is half past, how can we overtake at the corner in the second half of the year and enter the dream factory First of all, you should know that now, whether large or small companies, the interview investigation is not ...

Added by kevin_newbie on Thu, 10 Feb 2022 18:52:19 +0200

SSM framework integration

SSM framework integration SSM framework includes spring, spring MVC and Mybatis. Spring and spring MVC are both modules of the Spring Framework and do not need to be integrated. Just integrate Mybatis with spring 1, Integration concerns Application of Spring in web project When the web project starts, read ApplicationContext MXL configurat ...

Added by bigc79 on Thu, 10 Feb 2022 18:02:34 +0200

[practical problems] - three practices of Bloom filter: handwriting, redistribution and Guava

We have already talked about the principle of Bloom filter [practical problem] - bloom filter for cache penetration (1) , we all understand that it works like this, so how do we use bloom filter in general? If you do it yourself, how do you do it? Bloom filter Read the definition again: Bloom Filter was proposed by Burton Howard Bloom in ...

Added by artizan on Thu, 10 Feb 2022 16:45:16 +0200

Java8 Lambda expressions and Stream API: Lambda expressions

Reprinted from This article mainly explains the Java8 Stream API, but to explain this part, you need the knowledge of anonymous inner classes, lambda expressions and functional interfaces. This article will be divided into two articles to explain the above contents, which readers can refer to as needed. Java anonymous inner classes, lambda exp ...

Added by Clandestinex337 on Thu, 10 Feb 2022 16:19:49 +0200

Java learning five - collection framework

HashMap Store key value pairs. First calculate the position in the bucket according to the key, and then put the instance in the corresponding bucket (tail insertion). If the number of instances in the bucket exceeds a certain range, the linked list will become a red black tree (but its red black tree structure still maintains the struc ...

Added by kontesto on Thu, 10 Feb 2022 16:13:18 +0200

An article quickly understand the four commonly used thread pools in Java

See the article on how to use the thread pool constructor in Java to directly create an instance of thread pool Detailed explanation of Java thread pool construction parameters . However, in the Executors class, we are provided with methods to create common thread pools. Next, let's learn about the four commonly used:newFixedThreadPoolFirst, l ...

Added by Jeroen_nld on Thu, 10 Feb 2022 16:03:50 +0200

[explanation of 2014 Blue Bridge Cup Java-B provincial competition]

1, Martial arts script (simulation) Title: Martial Arts script Xiao Ming arrives X During the cave exploration, I found a damaged martial arts secret script (more than 2000 pages! Of course, it is forged). He noticed that pages 10 and 11 of the book were on the same page, but pages 11 and 12 were not on the same page. Xiao Ming o ...

Added by Paavero on Thu, 10 Feb 2022 14:47:33 +0200