# Category Archives: School Programming

Given an integer N, the task is to reverse the digits of given integer using recursion. Examples: Input: N = 123Output: 321Explanation:The reverse of the… Read More
Given a 2D array a[][] where each row consists of N vector coordinates of the form (xi, yi, zi) of an applied body. If the… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to find the array element closest to K. If multiple… Read More
Given a matrix arr[][] of dimensions N * M and an integer K, the task is to print all elements of the matrix starting from… Read More
Given two strings str1 and str2 of length N and M respectively, the task is to check if the string str1 can be formed by… Read More
In C++, we can overload the comma operator using Operator Overloading. For Example: For “Send the query X to the server Y and put the… Read More
Given an array arr[] of size N, the task is to print the least possible size the given array can be reduced to by performing… Read More
Problem Statement: Write C program to build a Software for Examination Management System that can perform the following operations: Add/Delete the Details of the Students… Read More
Given a Stack S, the task is to print the elements of the stack from top to bottom such that the elements are still present… Read More
Given a binary array arr[] of size N, the task is to print the sum of product of all pairs of the given array elements.… Read More
Given an integer N, the task is to check if the given number N is even or odd. If it is found to be even,… Read More
Given an array arr[] consisting of N positive integers, the task is to find the sum of all array elements after reversing digits of every… Read More
Given an integer N, the task is to generate a matrix of dimensions N x N using positive integers from the range [1, N] such… Read More
Given two integers A and B, convert A to B by performing one of the following operations any number of times: A = A +… Read More
Given an array arr[] and an integer K, the task is to calculate the ratio of all subarrays of size K. Examples: Input: arr[] =… Read More