The Graduate Record Examinations (GRE) is the most preferred examination for graduate schools in the United States. GRE is considered to be an admission requirement… Read More

Featured Articles

This is an introduction course to HTML and CSS which will help you learn all about the basics of HTML and CSS needed to begin… Read More

This guide will cover everything you need to prepare for your dream job. The basic structure of this course is as follows: Resume Building Application… Read More

Given a set represented as a string, write a recursive code to print all subsets of it. The subsets can be printed in any order. … Read More

Given an array of N positive (32-bit)integers, the task is to answer Q queries of the following form: Query(L, R, K): Print the number of… Read More

Given an array of non-negative integers and a number x, find a pair in the array whose product is closest to x. Examples: Input :… Read More

Given a binary tree and a node in the binary tree, find preorder successor of the given node. It may be assumed that every node… Read More

C++ // C++ program to print the longest leaf to leaf // path #include <bits/stdc++.h> using namespace std; // Tree node structure used in… Read More

Given a set of ‘n’ vertices and ‘m’ edges of an undirected simple graph (no parallel edges and no self-loop), find the number of single-cycle-components… Read More

Given a number n, count number of integers smaller than or equal to n that have odd number of set bits.Examples: Input : 5 Output… Read More

Given a non-negative integer n. The problem is to invert the bits of n and print the number obtained after inverting the bits. Note that… Read More

Given an array of positive distinct integers. We need to find the only element whose replacement with any other value makes array elements distinct consecutive.… Read More

Google Guava is an open-source(a decentralized software-development model that encourages open collaboration) set of common libraries for Java, mainly developed by Google engineers. It helps… Read More

Prerequisite : Flood fill algorithm, Scan-line polygon filling Introduction : Boundary Fill Algorithm starts at a pixel inside the polygon to be filled and paints… Read More

Given an array arr[]. Find the maximum value of prefix sum which is also suffix sum for index i in arr[]. Examples : Input :… Read More