迹忆客 EN >

所有文章

How to use the Adapter design pattern in Java

发布时间:2025/03/19 作者:JIYIK 分类: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...

查看全文

Java Decorator Design Pattern Example

发布时间:2025/03/19 作者:JIYIK 分类: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...

查看全文

How to implement the Command Design Pattern in Java

发布时间:2025/03/19 作者:JIYIK 分类: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...

查看全文

How to use the State Design Pattern in Java?

发布时间:2025/03/19 作者:JIYIK 分类: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...

查看全文

Observer Design Pattern in Java

发布时间:2025/03/19 作者:JIYIK 分类: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...

查看全文

How to use Composite Design Pattern in Java?

发布时间:2025/03/19 作者:JIYIK 分类: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...

查看全文

Tim Sort

发布时间:2025/03/19 作者:JIYIK 分类: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...

查看全文

Linear Search

发布时间:2025/03/19 作者:JIYIK 分类:ALGORITHM

Linear search is the simplest search algorithm. It is also called sequential search because in this algorithm, we look for the matching element by going through the entire array and comparing each element with the required item. If the requ...

查看全文

Index Search

发布时间:2025/03/19 作者:JIYIK 分类:ALGORITHM

Exponential search, also known as doubling search or finger search, is an algorithm created for searching elements in large arrays. It is a two-step process. First, the algorithm tries to find the range in which the target element exists (L,...

查看全文

Jump Search

发布时间:2025/03/19 作者:JIYIK 分类:ALGORITHM

Skip search is a range search algorithm. It is a relatively new algorithm that works only on sorted arrays. It tries to reduce the number of comparisons required compared to linear search by not scanning every element like linear search. In...

查看全文

Fibonacci Search

发布时间:2025/03/19 作者:JIYIK 分类:ALGORITHM

Fibonacci search is an efficient interval search algorithm. It is similar to binary search in that it is also based on a divide-and-conquer strategy and also requires the array to be sorted. In addition, the time complexity of both algorith...

查看全文

Binary Search

发布时间:2025/03/19 作者:JIYIK 分类:ALGORITHM

Binary search is the most popular and efficient search algorithm. In fact, it is the fastest search algorithm. Like jump sort, it also requires the array to be sorted. It is based on a divide and conquer approach where we divide the array i...

查看全文

扫一扫阅读全部技术教程

社交账号
  • https://www.github.com/onmpw
  • qq:1244347461

热门文章

热门标签

扫码一下
查看教程更方便