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

## Count all the columns in a matrix which are sorted in descending

Given a matrix mat[][], the task is to count the number of columns that are sorted in descending. Examples: Input: mat[][] = {{1, 3}, {0,… Read More »

## Minimum Distance Between Words of a String

Given a string s and two words w1 and w2 that are present in S. The task is to find the minimum distance between w1… Read More »

## Maximize the difference between two subsets of a set with negatives

Given an of integers of size N. The task is to separate these integers into two groups g1 and g2 such that (sum of elements… Read More »

## Minimum score after flipping the cards

Given N cards having positive integers printed on the front and the back of each card (possibly different). Any number of cards can be flipped,… Read More »

## Binary Search a String

Given a sorted array of String and a String x, find index of x if it is present in the array. Examples: Input : arr[]… Read More »

## Subset Sum Queries in a Range using Bitset

Given an array[] of N positive integers and M queries. Each query consists of two integers L and R represented by a range. For each… Read More »

## Largest palindromic number in an array

Given an array of non-negative integers arr[]. The task is to find the largest number in the array which is palindrome. If no such number… Read More »

## Remove all continuous occurrences of ‘a’ and all occurrences of ‘b’

Given a string str, the task is to remove all the continuous occurrences of a and all occurrences of b and print the resultant string.… Read More »

## Concatenate suffixes of a String

Given a string str the task is to expand the string as follows: If the string is abcd, the resultant string will be d, cd,… Read More »

## Count characters in a string whose ASCII values are prime

Given a string S. The task is to count and print the number of characters in the string whose ASCII values are prime. Examples: Input:… Read More »

## First X vowels from a string

Given a string str and an integer X, the task is to find and print first X vowels from str. If total vowels in str… Read More »

## Building Expression tree from Prefix Expression

Given a character array a[] representing a prefix expression. The task is to build an Expression Tree for the expression and then print the infix… Read More »

## Check if the sum of perfect squares in an array is divisible by x

Given an array arr[] and an integer x, the task is to check whether the sum of all the perfect squares from the array is… Read More »

## Sort the array in a given index range

Given an array arr[] of N integers and an index range [a, b]. The task is to sort the array in this given index range… Read More »

## Sort an array of string of dates in ascending order

Given an array of strings dates[], the task is to sort these dates in ascending order. Note: Each date is of the form dd mmm… Read More »