## Slope of the line parallel to the line with the given slope

Given an integer m which is the slope of a line, the task is to find the slope of the line which is parallel to… Read More »

- Maximum absolute difference in an array
- Predict the winner in Coin Game
- Check whether the triangle is valid or not if angles are given
- 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
- Program to find the Nth Prime Number
- Elements greater than the previous and next element in an Array
- Capitalize the first and last character of each word in a string
- Count of buttons pressed in a keypad mobile
- Smallest and Largest Palindrome with N Digits
- 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
- 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
- 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
- Check whether the given string is a valid identifier
- Count of elements whose absolute difference with the sum of all the other elements is greater than k
- Blog | Programming Guidelines
- 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 number of magical pairs of string of length L
- Find the sum of the number of divisors
- Find the sum of the first half and second half elements of an array
- Smallest Even number with N digits
- 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

Given an integer m which is the slope of a line, the task is to find the slope of the line which is parallel to… Read More »

Given an array arr[] of N integers and an integer K, the task is to find the number of anomalies in the array. An anomaly is a number for… Read More »

Given three integers A, B, C, the task is to find ΣAi=1 ΣBj=1ΣCk=1 d(i.j.k), where d(x) is the number of divisors of x. Answer can… Read More »

Given an integer N, the task is to find the number of odd days in the years from 1 to N. Odd Days: Number of… Read More »

Given here is a semicircle of radius r, which inscribes a rectangle which in turn inscribes an ellipse. The task is to find the area… Read More »

Given the string the task is to remove the first and last character of each word in a string. Examples: Input: Geeks for geeks Output:… Read More »

Given the string, the task is to capitalise the first and last character of each word in a string. Examples: Input: Geeks for geeks Output:… Read More »

Given an array of N integers. The task is to print the elements from the array which are greater than their immediate previous and next… Read More »

Given string str. The task is to check if the string contains consecutive letters and each letter occurs exactly once. Examples: Input: str = “fced”… Read More »

Given two integers x and y and where x is divisible by y. It can be represented in the form of a fraction x/y. The… Read More »

Given that a certain amount of money becomes T1 times itself in N1 years. The task is to find the number of years i.e. N2… Read More »

Given here is a rectangle of length l & breadth b, the task is to find the area of the biggest ellipse that can be… Read More »

Given an array arr[] that contain the lengths of n sides that may or may not form a polygon. The task is to determine whether… Read More »

Given an array arr[], the task is increment all the odd positioned elements by 1 and decrement all the even positioned elements by 1. Examples:… Read More »

Given a regular polygon of N sides with side length a. The task is to find the area of the Circle which inscribed in the… Read More »