Featured Article

## Finding nth term of any Polynomial Sequence

Given a few terms of a sequence, we are often asked to find the expression for the nth term of this sequence. While there is… Read More »

Featured Article

## Double Hashing

Double hashing is a collision resolving technique in Open Addressed Hash tables. Double hashing uses the idea of applying a second hash function to key… Read More »

Featured Article

## Loop Invariant Condition with Examples of Sorting Algorithms

Loop Invariant Condition: Loop invariant condition is a condition about the relationship between the variables of our program which is definitely true immediately before and… Read More »

## Sort the given string using character search

Given a string str of size n. The problem is to sort the given string without using any sorting techniques (like bubble, selection, etc). The… Read More »

## Variables and Datatypes in JavaScript

Datatypes in JavaScript There are majorly two types of languages. First, one is Statically typed language where each variable and expression type is already known… Read More »

## if-else Statement in JavaScript

Decision Making in programming is similar to decision making in real life. In programming also we face some situations where we want a certain block… Read More »

## String with maximum number of unique characters

Given a list of strings, find the largest string among all. Largest string is the string with largest number of unique characters. Example : Input… Read More »

## Maximum difference between two subsets of m elements

Given an array of n integers and a number m, find the maximum possible difference between two sets of m elements chosen from given array.… Read More »

## Program for length of the longest word in a sentence

Given a string, we have to find the longest word in the input string and then calculate the number of characters in this word. Examples:… Read More »

## Find if a string starts and ends with another given string

Given a string str and a corner string, we need to find out whether the string is starting and ending with the given corner string… Read More »

## Built-in Functions in AWK

AWK has lots of built-in functions for numeric, string, input, and output operations. Awk has the following two types of high level built-in function categories:… Read More »

## JavaScript | Array findIndex() function

arr.findIndex() function is used to find the index of the first element that satisfies the condition checked by the argument function from the given array.… Read More »

## Check if it is possible to survive on Island

You are a poor person in an island. There is only one shop in this island, this shop is open on all days of the… Read More »

## Functions in JavaScript

A function is a set of statements that take inputs, do some specific computation and produces output. Basically, a function is a set of statements… Read More »

## Print bitwise AND set of a number N

Given a number N, print all the numbers which are a bitwise AND set of the binary representation of N. Bitwise AND set of a… Read More »

## Check if a given number is Pronic | Efficient Approach

The numbers that can be arranged to form a rectangle are called Rectangular Numbers (also known as Pronic numbers). The first few Pronic numbers are:… Read More »

## PHP | srand( ) Function

Many times while designing questions or algorithms we require to generate random numbers. We already have studied a built-in function in PHP for generating random… Read More »

## Output of PHP programs | Set 4

Predict the output of below PHP programs: Question 1 Options: Error Welcome to GeeksforGeeks! Nothing Missing semicolon error Output: Nothing Explanation: If you need to… Read More »