Sorting Algorithms Archives • IT Blog
IT Blog
Boris IT Expert

Insertion sort in Java. Simple solution example.

November 11, 2020

Insertion sort in Java. Simple solution example.

In this article, we will discuss the way of the implementation of the insertion sort in Java. Because the sorting algorithm is a famous question on any technical interview, I recommend to learn it. The basic idea is to divide an array list into two parts. The left side is supposed to include sorted elements. […]

November 11, 2020

Bubble sort Java example. Simple solution.

Does bubble sort for an Array List in Java is the best solution? It’s not the best from a complexity estimation point of view. But it is easiest to understand, remember, and implement. It is better to show not the best algorithm that works than the elegant solution that does not work. Since the sorting […]

November 11, 2020

Easily solution of selection sort of Array List in Java.

How to sort an array list with the help of the selection sort in Java? If the interviewer asked you to write a code for the technical interview. I give 90% that you will have to sort something. One of my preferred sorting algorithms is the selection sort. Why? Because for me, it looks pretty […]