# Tag Archives: school-programming

## Find the volume of rectangular right wedge

A right wedge is a wedge with parallel side triangles. It have two side bases a and b, top edges e and height h. The… Read More »

## Find the sum of Eigen Values of the given N*N matrix

Given an N*N matrix mat[][], the task is to find the sum of Eigen values of the given matrix. Examples: Input: mat[][] = { {2,… Read More »

## Minimum steps required to convert the matrix into lower hessenberg matrix

Given a matrix of order NxN, Find the minimum number of steps to convert given matrix into Lower Hessenberg matrix. In each step, the only… Read More »

## Minimum number of steps to convert a given matrix into Upper Hessenberg matrix

Given a matrix of order NxN, Find the minimum number of steps to convert given matrix into Upper Hessenberg matrix. In each step, the only… Read More »

## Find the number which when added to the given ratio a : b, the ratio changes to c : d

Given four integers a, b, c and d. The task is to find the number X which when added to the numbers a and b… Read More »

## Total number of days taken to complete the task if after certain days one person leaves

Given that person A takes a days to do a certain piece of work while person B takes b days to do the same work.… Read More »

## Program to find the number of men initially

A certain number of men can do a certain piece of work in D days. If there were m more men engaged in the work… Read More »

## Blog | Programming Guidelines

Computer programming is a process of writing an executable computer program for accomplishing a specific computer task. Although writing the programs is an art, however,… Read More »

## Ratio of the distance between the centers of the circles and the point of intersection of two direct common tangents to the circles

Given two circles of given radii, such that the circles don’t touch each other, the task is to find the ratio of the distance between… Read More »

## Compare sum of first N-1 elements to Nth element of an array

Given an array arr[] of size N, the task is to check whether the sum of first N – 1 element of the array is… Read More »

## Number of positions such that adding K to the element is greater than sum of all other elements

Given an array arr[] and a number K. The task is to find out the number of valid positions i such that (arr[i] + K)… Read More »

## Find number of magical pairs of string of length L

A pair of string s and r are called magical if for every index i the character of s is less than r i.e. s[i]… Read More »

## Smallest and Largest sum of two n-digit numbers

Given an integer N ≥ 1, the task is to find the smallest and the largest sum of two N digit numbers. Examples: Input: N… Read More »

## Find the Diameter or Longest chord of a Circle

Given a circle with radius ‘r’ is given, the task is to find the diameter or longest chord of the circle. Examples: Input: r =… Read More »

## Determine the position of the third person on regular N sided polygon

Given ‘N’ which represent the regular N sided polygon. Two children are standing on the vertex ‘A’ and ‘B’ of this Regular N sided polygon.… Read More »