Summary of Java lookup algorithms

Preface Language: Java Environment: IntelliJ IDEA JDK Version: 1.8 Source code: GitHub Overview of Search Algorithms and Efficiency Analysis Algorithm name Time complexity Spatial complexity Sequential search O(n) O(1) Binary search O(log2n) O(1) Interpolation search O(log2(log2n)) O(1) fibonacci search O(log2n) O(n) In order t ...

Added by hexguy on Thu, 19 Sep 2019 12:48:58 +0300

Spring MVC View Resolver

When we use Spring MVC, we must know that for security reasons, our JSP files will be placed under WEB-INF. But we don't have direct access to resources in / WEB-INF / directory outside, do we? Access can only be carried out through internal server in the form of forwarding, so the bottom of the Internal ResourceViewResolver can help us solve ...

Added by harman on Fri, 13 Sep 2019 14:45:00 +0300

Java Decorator Mode

The decorator and the decorated have a common superclass. The purpose of inheritance is to inherit the type, not the behavior. Decoration mode is to dynamically extend the function of an object without changing the original file and using inheritance. It wraps real objects by creating a wrapping object, that is, decoration. In fact, Java' ...

Added by lynxus on Sat, 01 Jun 2019 00:05:50 +0300