Given a string S, we need to write a program to check if it is possible to construct the given string S by performing any… Read More »

#
All Medium Articles

Cluster is a set of loosely or tightly connected computers working together as a unified computing resource that can create the illusion of being one… Read More »

This is the variation of Rat in Maze A Maze is given as N*N binary matrix of blocks where source block is the upper left… Read More »

Like C++ and Java, PHP also supports object oriented programming Classes are the blueprints of objects. One of the big differences between functions and classes… Read More »

Given an array that contains both positive and negative integers, find the product of the maximum product subarray. Expected Time complexity is O(n) and only… Read More »

Given an array arr[]. Determine whether it is possible to split the array into two sets such that the sum of elements in both the… Read More »

Given a number s (1 <= s <= 1000000000). If s is sum of the cubes of the first n natural numbers then print n,… Read More »

A Square pyramidal number represents sum of squares of first natural numbers. First few Square pyramidal numbers are 1, 5, 14, 30, 55, 91, 140,… Read More »

Readability is the ease with which a reader can understand a written text. In natural language, the readability of text depends on its content (the… Read More »

Given a tree and a node data, your task to reverse the path till that particular Node. Examples: Input : 7 / \ 6 5… Read More »

A perfect power is a number that can be expressed as power of another positive integer. Given a number n, find count of numbers from… Read More »

Given an integer n. we have to find the nth term of Stern’s Diatomic Series. Stern’s diatomic series is the sequence which generates the following… Read More »

Given a number N, we need to write a program to find the largest number not greater than N which has all digits even. Examples:… Read More »

Given an array A positive integers, sort the array in ascending order such that element in given subarray (start and end indexes are input) in… Read More »

Let n be any power raised to base 2 i.e 2n. We are given the number n and our task is to find out the… Read More »

Hot Standby Router Protocol (HSRP) is a CISCO proprietary protocol used to provide redundancy in a network. Only one router is the active router while… Read More »

Sum Rule – If a task can be done in one of ways or one of ways, where none of the set of ways is… Read More »

Given two strings which are of lengths n and n+1. The second string contains all the character of the first string, but there is one… Read More »

Prerequisite – Mean, Variance and Standard Deviation, Variance and Standard Deviation of an array Given a matrix of size n*n. We have to calculate variance… Read More »

Given N numbers and Q queries, every query consists of L and R, task is to find the number of such integers i (L<=i<R) such… Read More »