Skip to content

Tag Archives: school-programming

Given a number N, the task is to find the minimum value of N by applying below operations any number of times:  Multiply N by… Read More
Given an integer array arr[] of size N, the task is to count the total number of distinct pairs having minimum absolute difference. Examples:   Input: arr[]… Read More
Given string str of lower case alphabets, the task is to find the minimum cost to change the input string in a string that contains… 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 B… 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. The pattern will be as per the n i.e. number… 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 rectangular block into a single square block by… 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 = “aabccccddd” Output:… 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:   Input:… Read More

Start Your Coding Journey Now!