Programming for fun and profit

Programming tutorials, problems, solutions. Always with code.

Graph representation

Graphs are fundamental data structure that help to solve many algorithmic problems. In this post we show different graph representations and their properties.

Read More

Share with the World!

Merge Sort in Java

In this post we’ll implement Merge Sort in Java. It’s fast, divide and conquer, sorting algorithm that can also be parallelized.

Read More

Share with the World!

Bubble Sort in Java

Bubble Sort is a sorting algorithm that repeatedly goes through an array and swaps adjacent elements that are not in order. In this post we’ll show how to implement it.

Read More

Share with the World!

Insertion Sort in Java

Insertion Sort in Java

Insertion Sort is another simple to understand and implement algorithm. Unlike Selection Sort it can work faster with certain data.

Read More

Share with the World!

Selection Sort in Java

Selection Sort in Java

Selection Sort is one of many sorting algorithms, but unlike a few others it is easy to understand and implement as we’re going to show here!

Read More

Share with the World!

Binary Search algorithm in Java

Binary Search algorithm in Java

Binary Search is the fastest algorithm for finding an element in a sorted list. Also it’s easy to implement what we’re going to show in this post.

Read More

Share with the World!
Pages:12