Find Substrings That Are Palindromes in Java 1. Overview In this quick tutorial, we’ll go through different approaches to finding all substrings within a given string that are palindromes. We’ll also note the time complexity of each approach. 2. Brute Force Approach In this approach, we’ll simply iterate over the… Continue Reading java-palindrome-substrings

Quicksort Algorithm Implementation in Java 1. Overview In this tutorial, we’ll explore the QuickSort algorithm in detail, focusing on its Java implementation. We’ll also discuss its advantages and disadvantages and then analyze its time complexity. 2. QuickSort Algorithm Quicksort is a sorting algorithm, which is leveraging the divide-and-conquer principle. It has… Continue Reading java-quicksort

How an In-Place Sorting Algorithm Works 1. Introduction In this tutorial, we’ll explain how the in-place sorting algorithm works. 2. In-Place Algorithms The in-place algorithms are those that don’t need any auxiliary data structure in order to transform the input data. Basically, it means that the algorithm doesn’t use extra… Continue Reading java-in-place-sorting

The Traveling Salesman Problem in Java Algorithms Java 1. Introduction In this tutorial, we’ll learn about the Simulated Annealing algorithm and we’ll show the example implementation based on the Traveling Salesman Problem (TSP). 2. Simulated Annealing The Simulated Annealing algorithm is a heuristic for solving the problems with a large… Continue Reading java-simulated-annealing-for-traveling-salesman

Check If Two Rectangles Overlap In Java 1. Overview In this quick tutorial, we’ll learn to solve an algorithmic problem of checking whether the two given rectangles overlap. We’ll start by looking at the problem definition and then progressively build up a solution. Finally, we’ll implement it in Java. 2.… Continue Reading java-check-if-two-rectangles-overlap