One of the simplest cryptographic algorithms is Caesar cipher. It’s not really secure, but sometimes you may encounter it in some exercises or crackmes.

Continue reading Caesar cipher in Java# Algorithms

As many other algorithms in Linked List – remove element from given position runs in linear time. Here we are going to implement it to better understand how it works.

Continue reading Linked List – remove elementIn this post we’ll implement another algorithm for Linked List – insert element at position. The algorithm works in linear time in the worst case.

Continue reading Linked List – insert element at positionLinked List is a simple data structure. Implementing it from scratch helps to understand its properties. We’ll implement Linked List add, size, and print its contents.

Continue reading Linked List add element at the endOne of the best known algorithms to detect a cycle in a linked list is Floyd Cycle detection. Using Floyd’s algorithm we can detect cycle, its beginning, and length.

Continue reading Floyd Cycle detection in JavaPalindrome is a sequence of chars which reads the same backward and forward. Detecting palindrome is a common job interview task therefore we’ll show how to implement that.

Continue reading Palindrome detector in JavaShuffling of arrays/lists sounds like a trivial task, but in reality it’s full of subtle traps. Here we show how to implement Fisher-Yates Shuffle Algorithm in Java.

Continue reading Shuffle Algorithm in JavaDivide and Conquer algorithms are great subject for parallelism. Here we present Parallel Merge Sort implemented using Java ForkJoin Framework.

Continue reading Parallel Merge Sort in JavaIn this post we show how to implement GCD in Java using Euclidean Algorithm. GCD is known as Greatest Common Divisor/Factor/Measure, Highest Common Divisor/Factor.

Continue reading GCD in Java using Euclidean AlgorithmQuicksort is one of the fastest sorting algorithms. In this article we implement Quicksort in Java, describe how it works and its properties.

Continue reading Quicksort in Java