This category is for logical grouping only. It needn’t to be added directly. Instead, the sub-categories should be added.

## Find a pair (n,r) in an integer array such that value of nCr is maximum

Given an array of non-negative integers arr[]. The task is to find a pair (n, r) such that value of nCr is maximum possible r… Read More »

## Minimum length String with Sum of the alphabetical values of the characters equal to N

Given an integer N, the task is to find the minimum length string whose sum of each character (As a = 1, b = 2,… Read More »

## Minimum halls required for class scheduling

Given N lecture timings, with their start time and end time (both inclusive), the task is to find the minimum number of halls required to… Read More »

## Difference between Linear and Non-linear Data Structures

Linear Data Structure: Data structure where data elements are arranged sequentially or linearly where the elements are attached to its previous and next adjacent in… Read More »

## C++ Program to print an Array using Recursion

Write a program in C++ to print an Array using Recursion Using static variable: Static variables have a property of preserving their value even after… Read More »

## C program to print the length of a String using %n format specifier

Given string str. The task is to find the length of the string using %n format specifier Examples: Input: Geeks For Geeks Output: 15 Input:… Read More »

## Queue in Python

Like stack, queue is a linear data structure that stores items in First In First Out (FIFO) manner. With a queue the least recently added… Read More »

## Significant Inversions in an Array

Given an array arr[], the task is to finds the total significant inversion count for the array. Two elements arr[i] and arr[j] form a significant… Read More »

## Range maximum query using Sparse Table

Given an array arr[], the task is to answer queries to find the maximum of all the elements in the index range arr[L…R]. Examples: Input:… Read More »

## Number of ways to erase exactly one element in the Binary Array to make XOR zero

Given a binary array of 0’s and 1’s, the task is to find the number of ways to erase exactly one element from this array… Read More »

## Find the ratio of number of elements in two Arrays from their individual and combined average

Given the average of elements in two arrays as ‘a’ and ‘b’ respectively, and their combined average as ‘c’, the task is to find the… Read More »

## Minimum steps required to reduce all the elements of the array to zero

Given an array arr[] of positive integers, the task is to find the minimum steps to reduce all the elements to 0. In a single… Read More »

## Difference between General tree and Binary tree

General Tree: In the data structure, General tree is a tree in which each node can have either zero or many child nodes. It can… Read More »

## Stack in Python

A stack is a linear data structure that stores items in a Last-In/First-Out (LIFO) or First-In/Last-Out (FILO) manner. In stack, a new element is added… Read More »

## Check if it is possible to move from (0, 0) to (X, Y) in exactly K steps

Given a point (X, Y) in a 2-D plane and an integer K, the task is to check whether it is possible to move from… Read More »