## 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

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 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: Loop invariant condition is a condition about the relationship between the variables of our program which is definitely true immediately before and… Read More »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »