Posts by Vamsi Krishna

Author Biographical Info: Not available

Block swap algorithm for array rotation in Python

By Vamsi Krishna

Block swap algorithm for array rotation is used to swap two non-overlapping regions of an array of equal size. It is one of the efficient algorithms for array rotation. Input: arr .... Read More

Implement stack using single queue in Python

By Vamsi Krishna

In this tutorial, we shall implement a stack using a single queue in Python. As I said in my previous post, Python does not have a specified stack data structure. A queue is a Line.... Read More

Birthday Paradox program in Python

By Vamsi Krishna

In this tutorial, we will be seeing about The Birthday Paradox, it’s explanation, and its implementation in Python. So, what is the Birthday paradox in the first place? Among.... Read More

Find bitonic point in given bitonic sequence in Python

By Vamsi Krishna

Before finding the Bitonic point in a given Bitonic Sequence in Python, let us first understand these terms and various cases. A Bitonic Sequence is a sequence that is initially st.... Read More

Get all possible sublists of a list in Python

By Vamsi Krishna

In this tutorial, we shall be printing all sublists of a given list in Python. In this case, we shall be considering the same numbers also as different elements. The user feeds the.... Read More

Implementation of Affine Cipher in Python

By Vamsi Krishna

In this tutorial, we shall implement Affine Cipher in Python. The Affine cipher is a monoalphabetic substitution cipher, meaning it uses fixed substitution over the entire message..... Read More