Selection sort in Java

Selection sort is one of the simple sorting algorithms. Its time complexity is O(n2). Selection sort fundamental Two nested loops Involves swapping At the end of each iteration, the lowest element is at the right position Selection sort steps As mentioned above, there are two loops in this algorithm. Essentially, the steps as below: Let’s … Read more

Setup Cucumber, TestContainers & Junit5 in Spring Boot Project

Since I spent countless hours finding the correct setup for Cucumber, TestContainers and Junit5 (Jupiter) for my Spring Boot project, I hope this tutorial can somehow save you time and help you avoid needless pain. Before you begin, I hope you already know what Cucumber, TestContainers, and Junit5 (and of course Spring Boot) are. If … Read more

Passing Data From API Between Components in Angular

When developing single-page applications, one of the most common patterns you encounter is cross-component communication. One specific case I recently had to deal with is this: the page has two components: One for displaying the search for and the other for showing the search result. Here is how to application works: As you can see, … Read more