Given an integer n and an array of size n check if it satisfies following conditions:- All elements of array must lie between 1 to… Read More »

Given n arrays of size m eacg. Find maximum sum obtained by selecting a number from each array such that the elements selected from i-th… Read More »

We have a simple binary tree and we have to print the top 3 largest elements present in the binary tree. Examples: Input : 1… Read More »

Given N, check if the number is Fibbinary Number or not. Fibbinary numbers are integers whose binary representation contains no consecutive ones. Examples: Input :… Read More »

Given an array of N integers. We need to find an index such that Frequency of Even numbers on its left side is equal to… Read More »

You are given an array of n-elements with a basic condition that occurrence of greatest element is more than once. You have to find the… Read More »

We are given an array. We need to sort the even positioned elements in the ascending order and the odd positioned elements in the descending… Read More »

There are n cities and there are roads in between some of the cities. Somehow all the roads are damaged simultaneously. We have to repair… Read More »

Given a two integers say a and b. Find the quotient after diving a by b without using multiplication, division and mod operator. Input :… Read More »

Given two numbers say a and b. Print their XOR after making the lengths of their binary representation equal by adding trailing zeros to the… Read More »

Given the number of rows and columns, print the corresponding swastika pattern using loops. Note : The number of rows and columns should be same… Read More »

Generally people switching from C/C++ to Python wonder how to print two or more variables or statements without going into a new line in python.… Read More »

A Java class file is a file containing Java bytecode and having .class extension that can be executed by JVM. A Java class file is… Read More »

Given a linked list. the task is to move all 0’s to the front of the linked list. The order of all other element except… Read More »

Given an array of integers, segregate even and odd numbers in the array. All the even numbers should be present first, and then the odd… Read More »

There is a m*n rectangular matrix whose top-left(start) location is (1, 1) and bottom-right(end) location is (m*n). There are k circles each with radius r.… Read More »

For every thread, JVM creates a separate stack at the time of thread creation. The memory for a Java Virtual Machine stack does not need… Read More »

Binding refers to the process of converting identifiers (such as variable and performance names) into addresses. Binding is done for each variable and functions. For… Read More »

Given an array of numbers, find the number among them such that all numbers are divisible by it. If not possible print -1. Examples: Input… Read More »

Given a sentence in the form of a string, convert it into its equivalent mobile numeric keypad sequence. Examples : Input : GEEKSFORGEEKS Output :… Read More »