## Largest and smallest digit of a number

Given a number N. The task is to find the largest and the smallest digit of the number. Examples : Input : N = 2346… Read More »

- Maximum absolute difference in an array
- Number of Hamiltonian cycle
- Shortest path on a Square
- Predict the winner in Coin Game
- Check if the string contains consecutive letters and each letter occurs exactly once
- Find frequency of smallest value in an array
- Count of buttons pressed in a keypad mobile
- Elements greater than the previous and next element in an Array
- Check if it is possible to create a polygon with given n sides
- Smallest and Largest Palindrome with N Digits
- Check whether the number can be made perfect square after adding 1
- Capitalize the first and last character of each word in a string
- Reduce the fraction to its lowest form
- Determine the numer of squares that line will pass through
- Remove the first and last character of each word in a string
- Count of quadruplets with given Sum
- Number of positions such that adding K to the element is greater than sum of all other elements
- Count of elements whose absolute difference with the sum of all the other elements is greater than k
- Largest sphere that can be inscribed in a right circular cylinder inscribed in a frustum
- Increment odd positioned elements by 1 and decrement even positioned elements by 1 in an Array
- Program to calculate Double Integration
- Find number of magical pairs of string of length L
- Program to Assign grades to a student using Nested If Else
- Find the resulting Colour Combination
- Blog | Programming Guidelines
- Smallest Even number with N digits
- Minimum steps required to convert the matrix into lower hessenberg matrix
- Program to calculate the number of odd days in given number of years
- Find the sum of the number of divisors
- Program to calculate the area between two Concentric Circles

Given a number N. The task is to find the largest and the smallest digit of the number. Examples : Input : N = 2346… Read More »

Given that the area of a right-angled triangle is X times its base b. The task is to find the height of the given triangle.… Read More »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »