# Category Archives: Algorithms (adsbygoogle = window.adsbygoogle || []).push({});

## Print all Increasing Subsequence of a List

Given a list or array of integer, the task is to print all such subsequences of this list such in which the elements are arranged… Read More »

## Merge K sorted Doubly Linked List in Sorted Order

Given K sorted doubly linked list. The task is to merge all sorted doubly linked list in single sorted doubly linked list means final list… Read More »

## Sort an array of strings according to string lengths using Map

Given an array of strings, we need to sort the array in increasing order of string lengths, using Map Data Structure. Examples: Input: str[] =… Read More »

## Traverse Linked List from middle to left-right order using recursion

Given a Linked List. The task is to traverse the Linked List from middle to left-right order using recursion. For Example: If the given Linked… Read More »

## Minimum number of Binary strings to represent a Number

Given a number N. The task is to find the minimum number of binary strings required to represent the given number as the sum of… Read More »

## Program to find the last two digits of x^y

The task is to find the last two digits of x^y. Since the digits with which it can end are 0-9, Hence this problem can… Read More »

## Difference between Posteriori and Priori analysis

Prerequisite – Analysis of Algorithms Algorithm is a combination or sequence of finite-state to solve a given problem. If the problem is having more than… Read More »

## Iterative program to generate distinct Permutations of a String

Given a string str, the task is to generate all the distinct permutations of the given string iteratively. Examples: Input: str = “bba” Output: abb… Read More »

## Round the given number to nearest multiple of 10 | Set-2

Given a large positive integer represented as a string str. The task is to round this number to the nearest multiple of 10. Examples: Input:… Read More »

## Find the ln(X) and log10X with the help of expansion

Given a positive number x, the task is to find the natural log (ln) and log to the base 10 (log10) of this number with… Read More »

## Triangle of numbers arising from Gilbreath’s conjecture

The task is to find the triangle of numbers arising from Gilbreath’s conjecture. Gilbreath’s conjecture: It is observed that given a sequence of prime numbers,… Read More »

## Van Emde Boas Tree | Set 1 | Basics and Construction

It is highly recommended to fully understand Proto Van Emde Boas Tree. Van Emde Boas Tree supports search, successor, predecessor, insert and delete operations in… Read More »

## Find the diagonal of the Cube

Given a side of the cube a. The task is to find the length of the diagonal of the cube. Examples: Input : a =… Read More »

## What is an Expression and What are the types of Expressions?

Expression: An expression is a combination of operators, constants and variables. An expression may consist of one or more operands, and zero or more operators… Read More »

## Concentric Hexagonal Numbers

The following numbers form the concentric hexagonal sequence : 0, 1, 6, 13, 24, 37, 54, 73, 96, 121, 150 …… The number sequence forms… Read More »