Skip to content

Tag Archives: school-programming

Given a square matrix of size N*N using numbers 1 to N^2, the task is to find the maximum of minimums of each layer of… Read More
Given integers x and y which denotes the average temperature of the week except for days Day1 and Day2 respectively, and the sum of the… Read More
Given an integer N, the task is to find the number of factors of N which are a perfect square. Examples:   Input: N = 100 Output:… Read More
Given four integers N, A, K, n where N represents the number of sides the polygon, A represents the initial angle of the polygon, K… Read More
Given one of the Sides S, Diagonal D, or Perimeter P of the square, the task is to find the area of the square with… Read More
Given non-negative integers K, M, and an array arr[] with N elements find the Mth element of the array after K left rotations. Examples: Input:… Read More
Given a matrix mat[][], pair of indices X and Y, the task is to find the number of moves to bring all the non-zero elements… Read More
Given an integer N, the task is to find two numbers a and b such that a + b = N, where a and b… Read More
Given string str, the task is to check whether the given string is linear or not. If it is linear then print “Yes” else print… Read More
Given a string str, the task is to check if string str is a substring of an infinite length string S in which lowercase alphabets… Read More
Given a number N and two arrays arr1[] and arr2[] of length 4. The array arr1[] denotes the denomination of 1, 5, 10, and 20… Read More
Given three numbers N, K, and B, the task is to check if N contains only K as digits in Base B. Examples:  Input: N… Read More
Given an array arr[] of n integers and an integer K, the task is to find the number of ways to select exactly K even… Read More
Given four integers N, R, X, and Y such that it represents a circle of radius R with [X, Y] as coordinates of the center.… Read More
Given a number N, the task is to create a square matrix of size N*N with values in range [1, N*N], such that the sum… Read More

Start Your Coding Journey Now!