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

- Find the Nth term of the series 14, 28, 20, 40,.....
- Program to check if two strings are same or not
- Shortest path on a Square
- Find sum of a number and its maximum prime factor
- Number of Hamiltonian cycle
- Smallest and Largest Palindrome with N Digits
- Count of buttons pressed in a keypad mobile
- Maximum absolute difference in an array
- Find frequency of smallest value in an array
- Check if the string contains consecutive letters and each letter occurs exactly once
- Convert a String into a square matrix grid of characters
- Program for Area Of Square after N-th fold
- Determine the numer of squares that line will pass through
- Replace the middle element of matrix with sum of surrounding elements
- Check whether the number can be made perfect square after adding 1
- Largest sphere that can be inscribed in a right circular cylinder inscribed in a frustum
- Predict the winner in Coin Game
- Biggest Reuleaux Triangle inscribed within a Square inscribed in an equilateral triangle
- Elements greater than the previous and next element in an Array
- Biggest Reuleaux Triangle inscirbed within a square inscribed in a semicircle
- Increment odd positioned elements by 1 and decrement even positioned elements by 1 in an Array
- Count pairs of numbers from 1 to N with Product divisible by their Sum
- Find the resulting Colour Combination
- Count of elements whose absolute difference with the sum of all the other elements is greater than k
- Program to calculate Double Integration
- Check if it is possible to create a polygon with given n sides
- Capitalize the first and last character of each word in a string
- Program to Assign grades to a student using Nested If Else
- Area of a n-sided regular polygon with given Radius
- Find number of magical pairs of string of length L

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 »