## Find indices of all local maxima and local minima in an Array

Given an array arr[] of integers. The task is to find the indices of all local minima and local maxima in the given array.Examples: Input:… Read More »

Given an array arr[] of integers. The task is to find the indices of all local minima and local maxima in the given array.Examples: Input:… Read More »

Given two integers X and Y, find the minimal number with the sum of digits X, which is strictly greater than Y. Examples: Input: X… Read More »

Given a positive integer N and K, the task is to divide N into K parts such that the first part has a value X,… Read More »

Given coordinates of three points A(x1, y1, z1), B(x2, y2, z2) and C(x3, y3, z3) in a 3D plane, where B is the intersection point… Read More »

Given a number n, the task is to print ‘K’ using alphabets. Examples: Input: n = 5 Output: A B C D E F A… Read More »

Given lower left and upper right coordinates (x1, y1) and (x2, y2) of a square, the task is to count the number of integral coordinates… Read More »

Given a rectangular grid NxM dimensions, the task is to find the minimum number of cuts required to break the given rectangular grid into a… Read More »

Print the pattern in which there is a hollow square and plus sign inside it. Pattern will be as per the n i.e. number of… Read More »

Keywords: Keywords are specific reserved words in C each of which has a specific feature associated with it. Almost all of the words which help… Read More »

Given an array of rectangular blocks with dimensions {l, b} of length m. we can shape each of rectangular blocks into a single square block… Read More »

Given a string str, the task is to print the frequency of each of the characters of str in alphabetical order. Example: Input: str =… Read More »

Given N planes. The task is to find the maximum number of line intersections that can be formed through the intersections of N planes. Examples:… Read More »

Given a string str consisting of lowercase English alphabets. The task is to add all the character values i.e. ‘a’ = 1, ‘b’ = 2,… Read More »

Given an array of integers arr[] of N elements, the task is to generate another array having (Bitwise) AND of previous and next elements with… Read More »

Given an integer N, the task is to print first N integers whose sum of digits is 10. Examples: Input: N = 4 Output: 19… Read More »