Category Archives: School Programming

Given an array arr[], representing the ages of N persons in a hospital and there is only one doctor who can give an immune dose… Read More
Given a matrix arr[][] of size N * M, the task is to print the boundary elements of the given matrix in a clockwise form.… Read More
Given two integers Y and B representing two years, the task is to find the day of the week in which 1st January of the… Read More
Given an integer pixel representing the width of a box in pixels, the task is to convert pixel into their equivalent value measured in rem… Read More
Given a floating-point number N, the task is to check if the value of N is equivalent to an integer or not. If found to… Read More
Given an integer centimeter, representing a length measured in centimetre, the task is to convert it into its equivalent value measured in pixels. Examples: Input:… Read More
Given two positive integers A and C, the task is to check if a number B exists such that A + B = C and… Read More
Given an array arr[] of size N, the task is to check if the array is spirally sorted or not. If found to be true,… Read More
Given an integer N (2 ≤ N ≤ 1e6), the task is to find the maximum element present in the array arr[] of size N… Read More
Given a square matrix mat[][] of dimensions N * N, the task is to print the matrix that can be obtained after swapping the laterally… Read More
Given a string M consisting of letters, digits and symbols, the task is to convert the string to a valid mobile number by removing all… Read More
Given an integer N, the task is to find the variance of the first N natural numbers. Variance is used to determine how far the… Read More
Given a matrix arr[][] of dimensions M * N, the task is to count the number of digits of every element present in the given… Read More
Given an upper triangular matrix M[][] of dimensions N * N, the task is to convert it into an one-dimensional array storing only non-zero elements… Read More
Given string str of length N, the task is to remove all the characters from the string whose frequencies are prime. Examples: Input: str =… Read More