## C program for Time Complexity plot of Bubble, Insertion and Selection Sort using Gnuplot

Prerequisite:Comparison among bubble sort, insertion sort and selection sort. Write a C program to plot and analyze the time complexity of Bubble sort, Insertion sort… Read More »

## Simplified International Data Encryption Algorithm (IDEA)

In cryptography, block cyphers are very important in the designing of many cryptographic algorithms and are widely used to encrypt the bulk of data in… Read More »

## Find Kth smallest value for b such that a + b = a | b

Given a number a and k, the task is to find the k’th smallest value for b such that a + b = a |… Read More »

## Number of pairs of lines having integer intersection points

Given two integer arrays P[] and Q[], where pi and qj for each 0 <= i < size(P) and 0 <= j < size(Q) represents… Read More »

## Percentage change in Hemisphere volume if radius is changed

Given that the radius of a hemisphere is changed by a fixed percentage so, the target is to calculate the percentage changed in the volume… Read More »

## How to discretize an Ellipse or Circle to a Polygon using C++ Graphics?

In this article, we’ll see how to discretize an Ellipse (or a circle) into a polygon. Since a circle is just a specific case of… Read More »

## Program to find the time remaining for the day to complete

Given the current time in the form of HH::MM, where H represents the hours and M, represents the minutes in a 24-hour time format. The… Read More »

## Find two numbers with the given LCM and minimum possible difference

Given an integer X, the task is to find two integers A and B such that LCM(A, B) = X and the difference between the… Read More »

## Find an integer that is common in the maximum number of given arithmetic progressions

Given two integer arrays A[] and D[], where Ai and Di represent the first element and common difference of an arithmetic progression respectively, the task… Read More »

## How is the time complexity of Sieve of Eratosthenes is n*log(log(n))?

Pre-requisite: Sieve of Eratosthenes What is Sieve of Eratosthenes algorithm? In order to analyze it, let’s take a number n and the task is to… Read More »

## Sorting Algorithm Visualization : Merge Sort

The human brain can easily process visuals instead of long codes to understand the algorithms. In this article, a program that program visualizes the Merge… Read More »

## Number of trailing zeros in N * (N – 2) * (N – 4)*….

Given an integer N, the task is to find the number of trailing zeros in the decimal notation of f(N) where f(N) = 1 if… Read More »

## Program to print double headed arrow pattern

Given an integer N which is the number of rows, the task is to draw the number pattern in the shape of a double headed… Read More »

## Diamond operator for Anonymous Inner Class with Examples in Java

Prerequisite: Anonymous Inner Class Diamond Operator: Diamond operator was introduced in Java 7 as a new feature.The main purpose of the diamond operator is to… Read More »

## Height of Pyramid formed with given Rectangular Box

Given an array of rectangular blocks with dimensions {l, b} of length m. we can shape each of rectangular blocks into a single square block… Read More »