Posts by Reetesh Kumar

Author Biographical Info: A passionate programmer who loves taking part in coding competitions and always ready to learn new stuff.

How to Sort a nearly sorted (or K sorted) array in Python

By Reetesh Kumar

In this tutorial, we’ll learn how to sort a nearly sorted array (or K sorted array) in Python. K sorted array means that every element is at most K steps ahead or behind it&#.... Read More

Block swap algorithm for array rotation in Java

By Reetesh Kumar

In this tutorial, we’ll learn the block swap algorithm for array rotation (left) in Java. Consider a given array (a) : 1,  2,  3,  4,  5,  6,  7,  8,  9 After rotatin.... Read More

Related Posts