## Generate an array having Bitwise AND of the previous and the next element

Given an array of integers arr[] of N elements, the task is to generate another array having (Bitwise) AND of previous and next elements with… Read More »

- Maximum absolute difference in an array
- Program to find the Nth Prime Number
- Predict the winner in Coin Game
- Check if it is possible to create a polygon with given n sides
- Check if the string contains consecutive letters and each letter occurs exactly once
- Check whether the triangle is valid or not if angles are given
- Capitalize the first and last character of each word in a string
- Elements greater than the previous and next element in an Array
- Reduce the fraction to its lowest form
- Remove the first and last character of each word in a string
- Count of quadruplets with given Sum
- Check whether the given string is a valid identifier
- Determine the number of squares of unit area that a given line will pass through.
- Program to calculate Double Integration
- Increment odd positioned elements by 1 and decrement even positioned elements by 1 in an Array
- Minimum steps required to convert the matrix into lower hessenberg matrix
- Find the volume of rectangular right wedge
- 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
- Find the sum of the number of divisors
- Program to calculate the number of odd days in given number of years
- Blog | Programming Guidelines
- Find the sum of the first half and second half elements of an array
- Find number of magical pairs of string of length L
- Largest and smallest digit of a number
- Check whether Quadrilateral is valid or not if angles are given
- Ratio of the distance between the centers of the circles and the point of intersection of two direct common tangents to the circles
- Area of the biggest ellipse inscribed within a rectangle
- Compare sum of first N-1 elements to Nth element of an array
- Count the number of occurrences of a particular digit in a number

Given an array of integers arr[] of N elements, the task is to generate another array having (Bitwise) AND of previous and next elements with… Read More »

Given an integer N, the task is to print first N integers whose sum of digits is 10. Examples: Input: N = 4 Output: 19… Read More »

Given a number N, find the remainder when the first digit of N is divided by its last digit. Examples: Input: N = 1234 Output:… Read More »

Given the initial balance as bal and the amount X to be debited, where X must be a multiple of 10 and rupees 1.50 is… Read More »

Given a number N and a digit D, the task is to count the occurrences of D in N. Examples: Input: N = 25, D… Read More »

Given an integer N. The task is to find the Nth prime number. Examples: Input : 5 Output : 11 Input : 16 Output :… Read More »

Given two integers r and d where r is the radius of the smaller circle and d is the difference of the area of this… Read More »

Given four integers A, B, C and D which represents the four angles of a Quadrilateral in degrees. The task is to check whether the… Read More »

Given an array arr of size N. The task is to find the sum of the first half (N/2) elements and second half elements (N… Read More »

A car travels with an average speed of S km/h without any stoppage and with stoppage the speed of car reduces to an average of… Read More »

Given three integers A, B and C which are the three angles of a possible triangle in degrees, the task is to check whether the… Read More »

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 »