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 »

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

## Puzzle | Four Glasses and Blindfold

Four glasses are placed on the corners of a square plate which can rotate about its center. Glasses are either upright (up) or upside-down (down)… Read More »

## Histograms Equalization in OpenCV

Prerequisite : Analyze-image-using-histogram Histogram equalization is a method in image processing of contrast adjustment using the image’s histogram. This method usually increases the global contrast… Read More »

## Power of a prime number ‘r’ in n!

Given an integer n, find the power of a given prime number(r) in n! Examples : Input : n = 6 r = 3 Factorial… Read More »

## Oyo Rooms Interview Experience | Set 9

Round 1 : This was online coding  round consisting of 2 coding questions each of 100 marks  and 15 objective questions each of 2 marks.If… Read More »

## Optional Class | isPresent() function

The isPresent() function in Optional Class is used to evaluate whether the value if assigned to variable is present or not. Syntax value.isPresent() Returns: It… Read More »

## Sort an array of dates in PHP

We are given an array which consists of multiple dates in (Y-m-d) format. We have to write a program in PHP to sort all the… Read More »

## PHP | usort() Function

PHP comes with a number of built-in functions which is used to sort arrays in an easier way. Here, we are going to discuss a… Read More »

## Form validation using HTML and JavaScript

Forms are used in webpages for the user to enter their required details that are further send it to the server for processing. A form… Read More »

## Find all possible triangles with XOR of sides zero

Given an integer N, we need to find three integers(X, Y, Z) which can form a triangle with the following conditions: Lengths of sides are… Read More »

## Check whether a given matrix is orthogonal or not

We are given a matrix, we need to check whether it is an orthogonal matrix or not. An orthogonal matrix is a square matrix and… Read More »

## Microsoft Interview experience | Set 162 (For Front End Developer)

I applied through an employee referral. The process took around 2 weeks. I was interviewed at Microsoft (Bangalore) in November 2017. Mainly they wanted developers… Read More »

## Count n digit numbers not having a particular digit

We are given two integers n and d, we need to count all n digit numbers that do not have digit d. Example : Input… Read More »

## Minimum swaps required to bring all elements less than or equal to k together

Given an array of n positive integers and a number k. Find the minimum number of swaps required to bring all the numbers less than… Read More »