JIYIK CN >

Current Location:Home > Learning >

All

Tim Sort

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Tim sort is a hybrid stable sorting algorithm. It is a hybrid algorithm derived from insertion sort and merge sort . It first uses insertion sort to sort subarrays, these small sorted subarrays are called natural runs. Then merge sort is us...

Full

How to use Composite Design Pattern in Java?

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

How to use Composite Design Pattern in Java?

Hello Java programmers, if you want to learn about Composite Design Pattern in Java , such as how to implement Composite Design Pattern and when to use it, then you have come to the right place. In this article, we will discuss Composite De...

Full

Observer Design Pattern in Java

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Observer design pattern in Java is a basic core Java pattern where the Observer monitors any changes in the state or properties of the Subject . For example, a company updates all shareholders about any decision taken by them here the compa...

Full

Adapter vs Decorator vs Facade vs Proxy Design Pattern in Java

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

There are some striking similarities between the Adapter, Decorator, Facade, and Proxy design patterns as they all use composition and delegation to solve problems. The Adapter pattern wraps an interface and delegates calls to it. Decorator...

Full

How to use the State Design Pattern in Java?

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

How to use the State Design Pattern in Java?

The State design pattern is a behavioral pattern. The State pattern looks similar to the Strategy pattern, but it helps in managing the object states so that they behave differently in different states. In this example, we will take a famou...

Full

How to implement the Command Design Pattern in Java

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Hello everyone, today, we will learn an important design pattern which is often overlooked by Java developers. Yes, I am talking about the Command pattern which helps us write flexible and loosely coupled code to implement actions and event...

Full

Java Decorator Design Pattern Example

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Hello everyone, if you want to learn about Decorator Design Pattern in Java , then you have come to the right place. As design patterns are very important while building software and equally important in any core Java interview, it is alway...

Full

How to use the Adapter design pattern in Java

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

The Adapter design pattern in Java , also known as the Wrapper pattern, is another very useful GOF pattern that helps bridge the gap between two classes in Java. According to the Gang of Four pattern list, Adapter is a structural pattern, m...

Full

How to implement the singleton pattern in JavaScript ES6+

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

In this article, we will show you how to implement the singleton pattern in JavaScript. If we are a full-stack JavaScript developer, we know that JavaScript is a powerful language and we can build amazing websites with it. On the other hand...

Full

How to implement binary search in Java without recursion?

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

How to implement binary search in Java without recursion?

Hey Java programmers, if you want to implement binary search in Java and looking for iterative and recursive binary search algorithms, then you have come to the right place. Today I am going to teach you an important algorithm. In computer...

Full

Ajax cross-domain cookie related settings

Publish Date:2025/03/18 Author:JIYIK Category:NETWORK

Ajax cross-domain cookie related settings

In web programming, we often encounter cross-domain issues. By default, browsers do not allow cross-domain access. Therefore, there is a concept here: CORS (Cross-Origin Resource Sharing). Before the HTML5 standard came out, CORS was not al...

Full

PHP cluster session sharing

Publish Date:2025/03/18 Author:JIYIK Category:NETWORK

PHP cluster session sharing

The concept of cluster is not complicated. It is actually multiple computers working together for the same goal. In Web applications, multiple servers provide services for a site. The first step to build a PHP cluster is to set up load bala...

Full

Redis protocol detailed explanation

Publish Date:2025/03/18 Author:JIYIK Category:NETWORK

In the article "Two Ways to Operate Redis with PHP" , we introduced how to use PHP to encapsulate phpredis. However, we don't know much about the underlying redis protocol. This article briefly introduces the Redis protocol to facilitate yo...

Full

Nginx load balancing health_check analysis

Publish Date:2025/03/18 Author:JIYIK Category:NETWORK

In Nginx load balancing, it is difficult to guarantee that every application server can run normally all the time. However, we can set Nginx to detect these application servers and detect which of them are inaccessible. There are two ways t...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial