Skip to content

Category Archives: School Programming

Given an integer N and a value K, the task is to find the number of factors of length K that are present in the… Read More
Find the count of numbers between L and R and are coprime with P. Note: Two numbers X and Y are coprime with each other… Read More
Given two integers L and R. Then the task is to output the count of integers X, such that L ≤ X2 ≤ R and… Read More
Given an integer array arr[] of size N, the task is to generate a new array by replacing ith element with its immediate right smaller… Read More
Given an array arr[] and two integers N and X, the task is to find if it is possible to create an array using N… Read More
Given the number N, the task is to print a pattern such that in each line all the digits from N to 1 are present… Read More
Given the coordinates of the centers of two circles (X1, Y1) and (X2, Y2) as well as the radii of the respective circles R1 and… Read More
Given a matrix mat[][], the task is to find the sum of all the elements of the matrix. Examples: Input: mat[][] = {{1, 2, 3},… Read More
Given the side (a, b, c) of a triangle and we have to find the perimeter of a triangle. Perimeter: Perimeter of a triangle is… Read More
Given the radius of a circle, find the area of that circle. The area of a circle can simply be evaluated using the following formula:… Read More
What is ‘Compound interest’ ? Compound interest is the addition of interest to the principal sum of a loan or deposit, or in other words, interest… Read More
What is ‘Simple Interest’?Simple interest is a quick method of calculating the interest charge on a loan. Simple interest is determined by multiplying the daily… Read More
Given a number n as input, we need to print its table. Examples: Input : 5 Output : 5 * 1 = 5 5 *… Read More
A rectangle is a flat figure in a plane. It has four sides and four equal angles of 90 degrees each. In a rectangle all… Read More
Given a binary array A[] of length N, the task is to find the minimum number of operations required such that no adjacent pair has… Read More

Start Your Coding Journey Now!