## 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 »

- 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
- Reduce the fraction to its lowest form
- Smallest and Largest Palindrome with N Digits
- 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
- Check whether the given string is a valid identifier
- Number of positions such that adding K to the element is greater than sum of all other elements
- Find the volume of rectangular right wedge
- Count of elements whose absolute difference with the sum of all the other elements is greater than k
- Minimum steps required to convert the matrix into lower hessenberg matrix
- Blog | Programming Guidelines
- 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
- Smallest Even number with N digits
- Find the sum of the first half and second half elements of an array
- Check whether Quadrilateral is valid or not if angles are given
- Largest and smallest digit of a number
- Ratio of the distance between the centers of the circles and the point of intersection of two direct common tangents to the circles

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 »

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 »

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 »

There are two players P1 and P2 and two piles of coins consisting of M and N coins respectively. At each turn, a player can… Read More »

Given four arrays containing integer elements and an integer sum, the task is to count the quadruplets such that each element is chosen from a… Read More »

Given two straight lines with co-efficients of there equations a1x + b1y + c1 = 0 and a2x + b2y + c2 = 0 respectively,… Read More »

Given a straight line with equation coefficients as a, b & c(ax + by + c = 0), the task is to find the area… Read More »

Given are two parallel straight lines with slope m, and different y-intercepts b1 & b2.The task is to find the distance between these two parallel… Read More »

Given a string str, the task is to check if the string is a valid identifier or not. In order to qualify as a valid… Read More »

Given an array arr[] of N integers, the task is to find the maximum absolute difference between any two elements of the array. Examples: Input:… Read More »