- Average of odd numbers till a given odd number
- Count of triangles with total n points with m collinear
- Average of even numbers till a given even number
- Count of different straight lines with total n points with m collinear
- Number of Reflexive Relations on a Set
- Cartesian Product of Two Sets
- Number of Symmetric Relations on a Set
- Combination and Permutation Practice Questions | Set 1
- Program to calculate GST from original and net prices
- Average of Squares of Natural Numbers
- Problem on permutations and combinations | Set 2
- Print Patterns in PL/SQL
- Program for Fibonacci numbers in PL/SQL
- Check Armstrong Number in PL/SQL
- Swap two numbers in PL/SQL
- Swap two numbers in PL/SQL without using temp
- Prime number in PL/SQL
- Check if a number is Palindrome in PL/SQL
- PHP | vprintf() function
- Print pyramid of GeeksforGeeks in PL/SQL
- Print all even numbers from 1 to n in PL/SQL
- Check whether a given number is even or odd in PL/SQL
- Print all odd numbers and their sum from 1 to n in PL/SQL
- Check if a given year is leap year in PL/SQL
- Centered triangular number in PL/SQL
- Finding sum of first n natural numbers in PL/SQL
- HTML | script Tag
- HTML | small Tag
- HTML | strong Tag
- HTML | title Tag
- CSS | animation-fill-mode Property
- CSS | animation-direction Property
- CSS | animation-play-state Property
- CSS | animation-name Property
- CSS | animation-iteration-count Property
- CSS | animation-timing-function Property
- CSS | animation-delay Property
- CSS | animation-duration Property
- CSS | column-count Property
- CSS | column-fill Property
- CSS | column-rule Property
- CSS | column-gap Property
- CSS | optional Selector

- How will you print numbers from 1 to 100 without using loop?
- Efficient way to multiply with 7
- Lucky Numbers
- Write an Efficient Method to Check if a Number is Multiple of 3
- Program to find parity
- Smallest power of 2 greater than or equal to n
- Largest Sum Contiguous Subarray
- Power Set
- Search an element in a sorted and rotated array
- Divide a string in N equal parts
- Compute the minimum or maximum of two integers without branching
- Compute modulus division by a power-of-2-number
- Babylonian method for square root
- Find minimum number to be divided to make a number a perfect square
- Union and Intersection of two sorted arrays
- A Product Array Puzzle
- Write you own Power without using multiplication(*) and division(/) operators
- Cutting a Rod | DP-13
- Turn off the rightmost set bit
- Add 1 to a given number
- Multiply a given Integer with 3.5
- Program for Fibonacci numbers
- Sliding Window Maximum (Maximum of all subarrays of size k)
- Check if array elements are consecutive | Added Method 3
- Find the repeating and the missing | Added 3 new methods
- Find whether an array is subset of another array | Added Method 3
- Find the minimum distance between two numbers
- Find a Fixed Point (Value equal to index) in a given array
- Find the maximum element in an array which is first increasing and then decreasing
- Josephus problem | Set 1 (A O(n) Solution)
- Binomial Coefficient | DP-9
- Add two numbers without using arithmetic operators
- Sum of subset differences
- Swap bits in a given number
- Find subarray with given sum | Set 1 (Nonnegative Numbers)
- The Celebrity Problem
- Check whether a given point lies inside a triangle or not
- XOR of all subarray XORs | Set 2
- Detect if two integers have opposite signs
- Find four elements that sum to a given value | Set 1 (n^3 solution)
- Check divisibility by 7
- Count the number of possible triangles
- Iterative Quick Sort
- Prim’s Minimum Spanning Tree (MST) | Greedy Algo-5
- Subset Sum Problem | DP-25
- Assembly Line Scheduling | DP-34
- Count all distinct pairs with difference equal to k
- Program for nth Catalan Number
- Count trailing zeroes in factorial of a number
- Find k closest elements to a given value
- Count Possible Decodings of a given Digit Sequence
- Maximum Sum Path in Two Arrays
- Count all possible walks from a source to a destination with exactly k edges
- Count ways to reach the n'th stair
- Find the smallest positive integer value that cannot be represented as sum of any subset of a given array
- Find common elements in three sorted arrays
- Given an n x n square matrix, find sum of all sub-squares of size k x k
- Given two strings, find if first string is a subsequence of second
- Count Distinct Non-Negative Integer Pairs (x, y) that Satisfy the Inequality x*x + y*y < n
- Find the closest pair from two sorted arrays
- Minimum Number of Platforms Required for a Railway/Bus Station
- K'th Smallest/Largest Element in Unsorted Array | Set 1
- Why is Binary Search preferred over Ternary Search?
- Find the missing number in Arithmetic Progression
- Find the element that appears once in an array where every other element appears twice
- Find position of an element in a sorted array of infinite numbers
- Rearrange an array such that 'arr[j]' becomes 'i' if 'arr[i]' is 'j' | Set 1
- Subtract two numbers without using arithmetic operators
- Pythagorean Triplet in an array
- Count possible ways to construct buildings
- Compute n! under modulo p
- Find the largest pair sum in an unsorted array
- Calculate 7n/8 without using division and multiplication operators
- Find the point where maximum intervals overlap
- Sort an almost sorted array where only two elements are swapped
- Find the nearest smaller numbers on left side in an array
- Modular multiplicative inverse
- Find a pair with maximum product in array of Integers
- Find the odd appearing element in O(Log n) time
- Trapping Rain Water
- Find maximum average subarray of k length
- Print a pattern without using any loop
- Print all non-increasing sequences of sum equal to a given number x
- Count number of ways to cover a distance
- Count number of ways to partition a set into k subsets
- Find three closest elements from given three sorted arrays
- Generate Pythagorean Triplets
- Number of paths with exactly k coins
- Maximum number of 2x2 squares that can be fit inside a right isosceles triangle
- Find the maximum subarray XOR in a given array
- Compute nCr % p | Set 1 (Introduction and Dynamic Programming Solution)
- Find Square Root under Modulo p | Set 1 (When p is in form of 4*i + 3)
- Count Inversions of size three in a given array
- Given a set, find XOR of the XOR's of all subsets.
- Number of Triangles in an Undirected Graph
- Number of Triangles in Directed and Undirected Graphs
- Runge-Kutta 4th Order Method to Solve Differential Equation
- Find all divisors of a natural number | Set 1
- Permutation Coefficient
- Count Strictly Increasing Subarrays
- Convert from any base to decimal and vice versa
- Dyck path
- Count positive integers with 0 as a digit and maximum 'd' digits
- Count Negative Numbers in a Column-Wise and Row-Wise Sorted Matrix
- Find minimum difference between any two elements
- Find lost element from a duplicated array
- Linear Diophantine Equations
- Compute (a*b)%c such that (a%c) * (b%c) can be beyond range
- Check if a number is Bleak
- Find Surpasser Count of each element in array
- Maximum product of a triplet (subsequnece of size 3) in array
- Sum of Fibonacci Numbers
- Number of non-negative integral solutions of a + b + c = n
- Find Cube Pairs | Set 2 (A n^(1/3) Solution)
- Find minimum adjustment cost of an array
- Largest product of a subarray of size k
- Find if array can be divided into two subarrays of equal sum
- Find profession in a special family
- Maximum Product Subarray | Set 2 (Using Two Traversals)
- Find the compatibility difference between two arrays
- Find number of times a string occurs as a subsequence in given string
- Find Two Missing Numbers | Set 2 (XOR based solution)
- Active and Inactive cells after k Days
- Count digit groupings of a number with given constraints
- Maximize value of (arr[i] - i) - (arr[j] - j) in an array
- Non Fibonacci Numbers
- Sorted subsequence of size 3 in linear time using constant space
- Sort an array according to count of set bits
- Find the minimum value of m that satisfies ax + by = m and all values after m also satisfy
- Count distinct occurrences as a subsequence
- Finding sum of digits of a number until sum becomes single digit
- Smallest subarray whose sum is multiple of array size
- Check whether a given number is even or odd
- Print sums of all subsets of a given set
- Interpolation Search
- Happy Number
- Perfect reversible string
- Equal Sum and XOR
- Josephus problem | Set 2 (A Simple Solution when k = 2)
- Check if bits of a number has count of consecutive set bits in increasing order
- Maximum occurred integer in n ranges
- Count all sorted rows in a matrix
- Latin Square
- Saddle point in a matrix
- GCD, LCM and Distributive Property
- Maximum height when coins are arranged in a triangle
- Multiples of 4 (An Interesting Method)
- Recursively break a number in 3 parts to get maximum sum
- Smallest number by rearranging digits of a given number
- Number of flips to make binary string alternate | Set 1
- Maximum XOR value in matrix
- Maximum sum of pairs with specific difference
- Find element using minimum segments in Seven Segment Display
- Find Equal (or Middle) Point in a sorted array with duplicates
- Find Maximum XOR value of a sub-array of size k
- Find elements larger than half of the elements in an array
- Maximum subsequence sum such that no three are consecutive
- Minimum XOR Value Pair
- Count pairs in an array that hold i*arr[i] > j*arr[j]
- Count pairs whose products exist in array
- Count minimum number of "move-to-front" moves to sort an array
- Find the maximum number of handshakes
- Count minimum number of subsets (or subsequences) with consecutive numbers
- Program to find the number of persons wearing white hat
- Circular primes less than n
- Print cells with same rectangular sums in a matrix
- Position of an element after stable sort
- The painter's partition problem
- Steps to return to {1, 2, ..n} with specified movements
- Maximum sum subarray removing at most one element
- Minimum flips in two binary arrays so that their XOR is equal to another array
- Find sum of modulo K of first N natural number
- Maximum 0's between two immediate 1's in binary representation
- Replace every matrix element with maximum of GCD of row or column
- Minimum sum subsequence such that at least one of every four consecutive elements is picked
- Total coverage of all zeros in a binary matrix
- Count number of ways to reach destination in a Maze
- Program for Chocolate and Wrapper Puzzle
- Maximum path sum for each position with jumps under divisibility condition
- Maximum sum Bi-tonic Sub-sequence
- Queries on count of points lie inside a circle
- Find two prime numbers with given sum
- Queries for greater than and not less than
- Efficient search in an array where difference between adjacent is 1
- Count of character pairs at same distance as in English alphabets
- Permute two arrays such that sum of every pair is greater or equal to K
- Minimum number of characters to be removed to make a binary string alternate
- Count of subarrays whose maximum element is greater than k
- Check if two strings are k-anagrams or not
- Calculate depth of a full Binary tree from Preorder
- Sum of both diagonals of a spiral odd-order square matrix
- Check length of a string is equal to the number appended at its last
- Count all sub-arrays having sum divisible by k
- Unbounded Knapsack (Repetition of items allowed)
- Choose k array elements such that difference of maximum and minimum is minimized
- Sort an array when two halves are sorted
- Queries for characters in a repeated string
- Minimum number of power terms with sum equal to n
- Check whether Strings are k distance apart or not
- Queries on subsequence of string
- Print all possible sums of consecutive numbers with sum N
- Find pair with greatest product in array
- Minimum number of page turns to get to a desired page
- Count pairs of natural numbers with GCD equal to given number
- Find a partition point in array
- Find pairs in array whose sums already exist in array
- Longest prefix that contains same number of X and Y in an array
- Double factorial
- Find all elements in array which have at-least two greater elements
- Divide array into two sub-arrays such that their averages are equal
- Find elements which are present in first array and not in second
- Maximum determinant of a matrix with every values either 0 or n
- Find three element from different three arrays such that that a + b + c = sum
- Check whether Arithmetic Progression can be formed from the given array
- Weighted Prefix Search
- Find maximum array sum after making all elements same with repeated subtraction
- Pairs of Amicable Numbers
- Check horizontal and vertical symmetry in binary matrix
- Sum of product of x and y such that floor(n/x) = y
- Minimum number of equal amount bags to collect at least M money
- Sum of matrix in which each element is absolute difference of its row and column numbers
- Hoare's vs Lomuto partition scheme in QuickSort
- Count of AP (Arithmetic Progression) Subsequences in an array
- N-th multiple in sorted list of multiples of two numbers
- Count of index pairs with equal elements in an array
- Multiplication of two numbers with shift operator
- Possible to form a triangle from array values
- Make two sets disjoint by removing minimum elements
- Maximum number of groups of size 3 containing two type of items
- Minimum time required to produce m items
- Find a local minima in an array
- Form coils in a matrix
- Exponential Search
- Sum of matrix element where each elements is integer division of row and column
- Count smaller numbers whose XOR with n produces greater value
- Distance of nearest cell having 1 in a binary matrix
- Maximum sum of smallest and second smallest in an array
- Allocate minimum number of pages
- Find first and last positions of an element in a sorted array
- Count all Quadruples from four arrays such that their XOR equals to 'x'
- Program to find Normal and Trace of a matrix
- C Program To Check whether Matrix is Skew Symmetric or not
- Type of array and its maximum element
- Conditionally assign a value without using conditional and arithmetic operators
- Sort array after converting elements to their squares
- Maximum and Minimum in a square matrix.
- Count all pairs of an array which differ in K bits
- Check if two arrays are equal or not
- Maximum value in an array after m range increment operations
- Make n using 1s and 2s with minimum number of terms multiple of k
- Maximum sum of hour glass in matrix
- K difference permutation
- Modify array to maximize sum of adjacent differences
- Find ways an Integer can be expressed as sum of n-th power of unique natural numbers
- Count smaller values whose XOR with x is greater than x
- XOR of all subarray XORs | Set 1
- Search, insert and delete in an unsorted array
- Split an array into two equal Sum subarrays
- Check if frequency of each digit is less than the digit
- Count Divisors of n in O(n^1/3)
- Check if right triangle possible from given area and hypotenuse
- Find original array from encrypted array (An array of sums of other elements)
- Noble integers in an array (count of greater elements is equal to value)
- Window Sliding Technique
- Largest sum Zigzag sequence in a matrix
- Count the number of subarrays having a given XOR
- Find maximum height pyramid from the given array of objects
- Subsequence with maximum odd sum
- Program to print the diamond shape
- Minimum cost for acquiring all coins with k extra coins allowed with every coin
- Program for average of an array (Iterative and Recursive)
- Compute nCr % p | Set 3 (Using Fermat Little Theorem)
- Binary Search
- Delete an element from array (Using two traversals and one traversal)
- Program to find largest element in an array
- Program to multiply two matrices
- Program to find GCD or HCF of two numbers
- Program to find LCM of two numbers
- Program for factorial of a number
- Program to find transpose of a matrix
- Recursive program to linearly search an element in a given array
- Program to check if two given matrices are identical
- Program to find area of a triangle
- Program to find area of a circle
- Program to find sum of series 1 + 1/2 + 1/3 + 1/4 + .. + 1/n
- Given a number as a string, find the number of contiguous subsequences which recursively add up to 9
- Efficient Program to Compute Sum of Series 1/1! + 1/2! + 1/3! + 1/4! + .. + 1/n!
- Print All Distinct Elements of a given integer array
- Count 1's in a sorted binary array
- Given a sorted array and a number x, find the pair in array whose sum is closest to x
- Given a number n, count all multiples of 3 and/or 5 in set {1, 2, 3, ... n}
- Remove repeated digits in a given number
- Find the largest three elements in an array
- Check whether an array can be fit into another array rearranging the elements in the array
- Find missing number in another array which is shuffled copy
- Minimum steps to minimize n as per given condition
- Longest alternating subsequence
- Count numbers whose sum with x is equal to XOR with x
- Program for multiplication of array elements
- Count the number of ways to divide an array into three contiguous parts having equal sum
- Find Index of given fibonacci number in constant time
- First digit in product of an array of numbers
- Check if a number can be written as sum of three consecutive integers
- Save from Bishop in chessboard
- Find a time for which angle between hour and minute hands is given theta
- Sequences of given length where every element is more than or equal to twice of previous
- Closest (or Next) smaller and greater numbers with same number of set bits
- Minimum positive integer to divide a number such that the result is an odd
- Fibonacci modulo p
- Program to print all substrings of a given string
- Number of integral solutions of the equation x1 + x2 +.... + xN = k
- Check if a number can be written as a sum of 'k' prime numbers
- Given GCD G and LCM L, find number of possible pairs (a, b)
- Minimum steps to come back to starting point in a circular tour
- Find a range of composite numbers of given length
- Count pairs from two sorted arrays whose sum is equal to a given value x
- Number of cells a queen can move with obstacles on the chessborad
- Elements of an array that are not divisible by any element of another array
- Remove one bit from a binary number to get maximum value
- Break the number into three parts
- Number of Groups of Sizes Two Or Three Divisible By 3
- Lexicographically smallest rotated sequence | Set 2
- Count of Palindromic substrings in an Index range
- Maximize matrix as per given condition
- Count pairs with Odd XOR
- Efficiently check whether n is a multiple of 4 or not
- Queries for decimal values of subarrays of a binary array
- Round-off a number to a given number of significant digits
- Paper Cut into Minimum Number of Squares | Set 2
- Maximum product of subsequence of size k
- Add minimum number to an array so that the sum becomes even
- Toggle bits in the given range
- Non-decreasing subsequence of size k with minimum sum
- Find the largest number with n set and m unset bits
- Calculating Factorials using Stirling Approximation
- Minimum insertions to form a palindrome with permutations allowed
- Program to Interchange Diagonals of Matrix
- Number of substrings divisible by 4 in a string of integers
- Count total number of digits from 1 to n
- Nth Even length Palindrome
- Program for octal to decimal conversion
- Print the string after the specified character has occurred given no. of times
- Quick way to check if all the characters of a string are same
- Finding power of prime number p in n!
- Adam Number
- Program to check if input is an integer or a string
- Count number of pairs (A <= N, B <= N) such that gcd (A , B) is B
- Program to find root of an equations using secant method
- Queries for counts of array elements with values in given range
- Josephus Problem Using Bit Magic
- Get the position of rightmost unset bit
- Find the index of first 1 in a sorted array of 0's and 1's
- Climb n-th stair with all jumps from 1 to n allowed (Three Different Approaches)
- Check if array elements are consecutive in O(n) time and O(1) space (Handles Both Positive and negative numbers)
- Check if an array contains all elements of a given range
- Equable Shapes
- Find numbers of balancing positions in string
- Evil Number
- Find repeated character present first in a string
- Ways to remove one element from a binary string so that XOR becomes zero
- Print triplets with sum less than or equal to k
- Sum of numbers with exactly 2 bits set
- Find pair with maximum GCD in an array
- Minimum sum of differences with an element in an array
- Coloring a Cycle Graph
- Sum of cubes of first n even numbers
- Sum of cubes of first n odd natural numbers
- Maximum length subsequence with difference between adjacent elements as either 0 or 1
- Program to print the sum of the given nth term
- Print 'K'th least significant bit of a number
- Subarray with XOR less than k
- Number of positions with Same address in row major and column major order
- Centered Dodecagonal Number
- Maximum sum of lengths of non-overlapping subarrays with k as the max element.
- Mutual Recursion with example of Hofstadter Female and Male sequences
- Convert to Strictly increasing integer array with minimum changes
- Change all even bits in a number to 0
- Efficiently find first repeated character in a string without using any additional data structure in one traversal
- Print a matrix in a spiral form starting from a point
- Equalize an array using array elements only
- Minimum Number of Manipulations required to make two Strings Anagram Without Deletion of Character
- Given two strings check which string makes a palindrome first
- Maximum sum of difference of adjacent elements
- Least number of manipulations needed to ensure two strings have identical characters
- Smallest element in an array that is repeated exactly 'k' times.
- Distributing M items in a circle of size N starting from K-th position
- Repeatedly search an element by doubling it after every successful search
- Find a triplet such that sum of two equals to third element
- Find smallest permutation of given number
- Efficiently compute sums of diagonals of a matrix
- Coin game winner where every player has three choices
- Maximise the size of consecutive element subsets in an array
- Count ways to express a number as sum of powers
- Difference between sums of odd and even digits
- Recursive solution to count substrings with same first and last characters
- Find multiple of x closest to or a ^ b (a raised to power b)
- Maximum Weight Difference
- Sort first half in ascending and second half in descending order | 1
- Find element in a sorted array whose frequency is greater than or equal to n/2.
- Height of n-ary tree if parent array is given
- Count of obtuse angles in a circle with 'k' equidistant points between 2 given points
- Find the n-th number whose binary representation is a palindrome
- Check if any anagram of a string is palindrome or not
- Check whether a given point lies inside a rectangle or not
- Collect maximum points in an array with k moves
- Minimum absolute difference of XOR values of two subarrays
- Number of jumps for a thief to cross walls
- Number of bitonic arrays of length n and consisting of elements from 1 to n
- Count even and odd digits in an Integer
- Find an element in array such that sum of left array is equal to sum of right array
- Position of rightmost common bit in two numbers
- Find row number of a binary matrix having maximum number of 1s
- Find smallest number n such that n XOR n+1 equals to given k.
- Check if two given circles touch or intersect each other
- Check whether given circle resides in boundary maintained by two other circles
- Find the sum of maximum difference possible from all subset of a given array.
- Find the index of first 1 in an infinite sorted array of 0s and 1s
- Find m-th summation of first n natural numbers.
- Counting pairs when a person can form pair with at most one
- Betrothed numbers
- Program to find if a character is vowel or Consonant
- Sylvester's sequence
- Minimum operations to make XOR of array zero
- Golomb sequence
- Maximum area rectangle by picking four sides from array
- Maximum number of squares that can fit in a right angle isosceles triangle
- Minimum flips required to maximize a number with k set bits
- Sort a binary array using one traversal
- Geometric mean (Two Methods)
- Program to Print Matrix in Z form
- Find element at given index after given range reversals
- Efficient program to print the number of factors of n numbers
- Distributing all balls without repetition
- Program to find the area of a Square
- Luhn algorithm
- Largest K digit number divisible by X
- Smallest K digit number divisible by X
- Minimum product pair an array of positive Integers
- Difference between highest and least frequencies in an array
- Find minimum radius such that atleast k point lie inside the circle
- Maximum difference between group of k-elements and rest of the array.
- Minimum cells required to reach destination with jumps equal to cell values
- Row-wise common elements in two diagonals of a square matrix
- Program to count digits in an integer (4 Different Methods)
- Product of factors of number
- Find Unique pair in an array with pairs of numbers
- Make a string from another by deletion and rearrangement of characters
- Print all subsets of given size of a set
- Stable Selection Sort
- Count entries equal to x in a special matrix
- Number of subarrays having product less than K
- Maximum value of |arr[i] - arr[j]| + |i - j|
- Program for cube sum of first n natural numbers
- Steps to make array empty by removing maximum and its right side
- Find the dimensions of Right angled triangle
- Array element moved by k using single moves
- Minimum Possible value of |ai + aj - k| for given array and k.
- Find maximum sum of triplets in an array such than i < j < k and a[i] < a[j] < a[k]
- Minimum element whose n-th power is greater than product of an array of size n
- Number of triangles after N moves
- Sum of all subsets of a set formed by first n natural numbers
- Cyclic Number
- Count of substrings of a binary string containing K ones
- Find the last digit when factorial of A divides factorial of B
- Check if a given matrix is sparse or not
- Rearrange array such that even index elements are smaller and odd index elements are greater
- Minimum rotations to unlock a circular lock
- Longest alternating sub-array starting from every index in a Binary Array
- Count ways of choosing a pair with maximum difference
- Check whether a number has exactly three distinct factors or not
- Minimal operations to make a number magical
- Rearrange a binary string as alternate x and y occurrences
- Find all factorial numbers less than or equal to n
- Ways to color a 3*N board using 4 colors
- Check if a number is power of k using base changing method
- Queries on probability of even or odd number in given ranges
- Minimum cost to connect weighted nodes represented as array
- Minimum tiles of sizes in powers of two to cover whole area
- Possibility of a word from a given set of characters
- Pairs with Difference less than K
- Number of Binary Trees for given Preorder Sequence length
- Maximize the sum of arr[i]*i
- k size subsets with maximum difference d between max and min
- Count number of elements between two given elements in array
- Shuffle array {a1, a2, .. an, b1, b2, .. bn} as {a1, b1, a2, b2, a3, b3, ……, an, bn} without using extra space
- Check if one of the numbers is one's complement of the other
- 9's complement of a decimal number
- Check if a number is divisible by all prime divisors of another number
- Mean and Median of a matrix
- Find a number x such that sum of x and its digits is equal to given n.
- Segment tree | Efficient implementation
- Alexander Bogomolny’s UnOrdered Permutation Algorithm
- Length of Longest Balanced Subsequence
- Split n into maximum composite numbers
- Divide an array into k segments to maximize maximum of segment minimums
- Woodall Number
- Interquartile Range (IQR)
- Minimum reduce operations to covert a given string into a palindrome
- Find single in an array of 2n+1 integer elements
- Program for Variance and Standard Deviation of an array
- Check if a given array is pairwise sorted or not
- Maximum even sum subsequence
- Given an array and three numbers, maximize (x * a[i]) + (y * a[j]) + (z * a[k])
- Program for product of array
- Area of a triangle inscribed in a rectangle which is inscribed in an ellipse
- Program for Area And Perimeter Of Rectangle
- First collision point of two series
- Possibility of moving out of maze
- Sgn value of a polynomial
- String with k distinct characters and no same characters adjacent
- Minimum sum by choosing minimum of pairs from array
- Minimum number of bombs
- Program to find Circumference of a Circle
- Counting sets of 1s and 0s in a binary matrix
- Find the frequency of a number in an array
- Number of steps to convert to prime factors
- Check if an encoding represents a unique binary string
- Minimum absolute difference of adjacent elements in a circular array
- Maximum number of characters between any two same character in a string
- Program to find GCD of floating point numbers
- Program for Volume and Surface Area of Cube
- Program for weighted mean of natural numbers.
- Count ways to form minimum product triplets
- Sum of array elements after every element x is XORed itself x times
- Area of a Circular Sector
- Number of co-prime pairs in an array
- Find n-th term in sequence 1, 1, 2, 1, 2, 3, 1, 2, 3, 4, ....
- Recursive sum of digits of a number is prime or not
- Subsequences of size three in an array whose sum is divisible by m
- Longest subsequence with no 0 after 1
- Expectation or expected value of an array
- Powers of two and subsequences
- Ways to paint stairs with two colors such that two adjacent are not yellow
- Count ways to express 'n' as sum of odd integers
- Minimum number of elements to add to make median equals x
- Divisibility by 64 with removal of bits allowed
- Counting cross lines in an array
- Count ways to express even number ‘n’ as sum of even integers
- Program to find slope of a line
- Replace a character c1 with c2 and c2 with c1 in a string S
- Longest alternating (positive and negative) subarray starting at every index
- Minimum cost to make array size 1 by removing larger of pairs
- Game of N stones where each player can remove 1, 3 or 4
- Number of n digit numbers that do not contain 9
- Number of ways to get even sum by choosing three numbers from 1 to N
- Sum of digits of a given number to a given power
- Program for dot product and cross product of two vectors
- Divide every element of one array by other array elements
- Delannoy Number
- Minimum sum of product of two arrays
- Elements to be added so that all elements of a range are present in array
- Maximum area of quadrilateral
- Program to check for Peterson number
- Minimum 1s to lend power to make whole array powerful
- Calculate the Discriminant Value
- Find array with k number of merge sort calls
- Program to find remainder when large number is divided by 11
- Program to check for ISBN
- Longest subsequence having equal numbers of 0 and 1
- Ways to color a skewed tree such that parent and child have different colors
- Print Number series without using any loop
- Encoding a word into Pig Latin
- Find if given number is sum of first n natural numbers
- Distributing items when a person cannot take more than two items of same type
- GCD of elements in a given range
- Minimum cost to convert string into palindrome
- Minimum replacements to make elements of a ternary array same
- Find all possible coordinates of parallelogram
- Given N and Standard Deviation, find N elements
- Minimum operations to make the MEX of the given set equal to x
- Products of ranges in an array
- Given a large number, check if a subsequence of digits is divisible by 8
- Number of subsequences as "ab" in a string repeated K times
- Pair formation such that maximum pair sum is minimized
- Sum of the Series 1/(1*2) + 1/(2*3) + 1/(3*4) + 1/(4*5) + . . . . .
- k-th number in the Odd-Even sequence
- Check input character is alphabet, digit or special character
- Check whether a number can be represented by sum of two squares
- Calculate Volume, Curved Surface Area and Total Surface Area Of Cylinder
- Program to find last two digits of Nth Fibonacci number
- GCD of array is greater than one
- Calculate Volume and Surface area Of Sphere
- Number of stopping station problem
- Count different numbers that can be generated such that there digits sum is equal to 'n'
- Minimum gcd operations to make all array elements one
- Mirror of matrix across diagonal
- Prime factors of a big number
- Minimum flips to make all 1s in left and 0s in right | Set 2
- Find minimum in an array without using Relational Operators
- Number of subarrays with maximum values in given range
- Convert to number with digits as 3 and 8 only
- Construct a distinct elements array with given size, sum and element upper bound
- Find maximum in an array without using Relational Operators
- One line function for factorial of a number
- Given two numbers a and b find all x such that a % x = b
- Maximum array sum with prefix and suffix multiplications with -1 allowed
- Ways of filling matrix such that product of all rows and all columns are equal to unity
- Middle term in the binomial expansion series
- Find element in array that divides all array elements
- Minimizing array sum by subtracting larger elements from smaller ones
- Count number of even and odd elements in an array
- Maximizing array sum with given operation
- Program to swap upper diagonal elements with lower diagonal elements of matrix.
- Number of pairs with maximum sum
- Find closest number in array
- Find smallest subarray that contains all elements in same order
- Find combined mean and variance of two series
- Maximum AND value of a pair in an array
- Largest number with binary representation is m 1's and m-1 0's
- Largest number by which given 3 numbers should be divided such that they leaves same remainder
- Program to print hollow rectangle or square star patterns
- Program for EMI Calculator
- Number of elements greater than modified mean in matrix
- Minimum jumps to reach last building in a matrix
- Program to find the minimum (or maximum) element of an array
- Program for Identity Matrix
- Find the sum of the series 1+11+111+1111+..... upto n terms
- Program to find area of a Trapezoid
- Maximum sum path in a matrix from top to bottom
- Find mean of subarray means in a given array
- Find x, y, z that satisfy 2/n = 1/x + 1/y + 1/z
- Product of maximum in first array and minimum in second
- Fermat's little theorem
- Calculate volume and surface area of a cone
- Minimum height of a triangle with given base and area
- Narayana number
- Largest divisible pairs subset
- Program to Convert Km/hr to miles/hr and vice versa
- Sum of first n odd numbers in O(1) Complexity
- Program for volume of Pyramid
- Nicomachus’s Theorem (Sum of k-th group of odd positive numbers)
- Schröder–Hipparchus number
- Check if the last element of array is even or odd after performing a operation p times
- Check if the game is valid or not
- Count of arrays having consecutive element with different values
- Middle of three using minimum comparisons
- Length of longest balanced parentheses prefix
- Program to calculate volume of Ellipsoid
- AKS Primality Test
- Program to check if matrix is upper triangular
- Program to calculate age
- Sum of squares of first n natural numbers
- Maximize volume of cuboid with given sum of sides
- Lobb Number
- Eulerian Number
- Count of possible hexagonal walks
- Ways to split array into two groups of same XOR value
- Program to calculate area and perimeter of Trapezium
- Program to find Perimeter / Circumference of Square and Rectangle
- Longest subsegment of '1's formed by changing at most k '0's
- Partition into two subarrays of lengths k and (N - k) such that the difference of sums is maximum
- Find a rotation with maximum hamming distance
- Entringer Number
- Maximum product of 4 adjacent elements in matrix
- Sum of all divisors from 1 to n
- Maximum triplet sum in array
- Telephone Number
- Sum of Manhattan distances between all pairs of points
- Game of Nim with removal of one stone allowed
- Find x and y satisfying ax + by = n
- Hosoya's Triangle
- Add given n time durations
- Program for Circumference of a Parallelogram
- Program to calculate Volume and Surface area of Hemisphere
- Minimum number of subtract operation to make an array decreasing
- First occurrence of a digit in a given fraction
- Minimize the absolute difference of sum of two subsets
- k smallest elements in same order using O(1) extra space
- Find larger of x^y and y^x
- Find largest sum of digits in all divisors of n
- Divide cuboid into cubes such that sum of volumes is maximum
- Minimum Cost to make two Numeric Strings Identical
- Octagonal number
- Difference between sum of the squares of first n natural numbers and square of sum
- Find n-th term of series 2, 10, 30, 68, 130 ...
- Program to find sum of series 1*2*3 + 2*3*4+ 3*4*5 + . . . + n*(n+1)*(n+2)
- Find Perimeter of a triangle
- Program to find the sum of a Series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n
- Program for Fahrenheit to Kelvin conversion
- Find sum of even index binomial coefficients
- Modulus of two float or double numbers
- Program to find sum of series 1 + 2 + 2 + 3 + 3 + 3 + . . . + n
- Sum of all the factors of a number
- Check whether a number is semiprime or not
- Modular multiplicative inverse from 1 to n
- Maximum sum of elements from each row in the matrix
- Program for Mobius Function
- Program for Volume and Surface area of Frustum of Cone
- Program to find area of a Circular Segment
- Add two numbers represented by two arrays
- Maximum in array which is at-least twice of other elements
- Program to calculate value of nCr
- Find the perimeter of a cylinder
- Program for Stair Case Patterns
- Maximum absolute difference of value and index sums
- Program to print diagonal star patterns
- Number of local extrema in an array
- C Program for Find the perimeter of a cylinder
- Program to calculate area of a Tetrahedron
- K maximum sums of non-overlapping contiguous sub-arrays
- Given 1's, 2's, 3's ......k's print them in zig zag way.
- Program to convert speed in km/hr to m/sec and vice versa
- Check if a given string is made up of two alternating characters
- Program to calculate area and perimeter of equilateral triangle
- Program to calculate Area Of Octagon
- Count frequency of k in a matrix of size n where matrix(i, j) = i+j
- Program to convert temperature from degree Celsius to Kelvin
- Program to check if N is a Pentagonal Number
- Program to find century for a year
- Pythagorean Quadruple
- K-th digit in 'a' raised to power 'b'
- Number of horizontal or vertical line segments to connect 3 points
- Sum of square of first n even numbers
- Sum of square of first n odd numbers
- Check for possible path in 2D matrix
- Average of odd numbers till a given odd number
- Average of even numbers till a given even number
- Find minimum moves to reach target on an infinite line
- Find number of pairs in an array such that their XOR is 0
- Count of different straight lines with total n points with m collinear
- Count square and non-square numbers before n
- Maximum subarray sum in O(n) using prefix sum
- Making elements distinct in a sorted array by minimum increments
- Program for Coefficient of variation
- Skewness of statistical data
- Centered hexagonal number
- Find if neat arrangement of cups and shelves can be made
- Find the minimum time after which one can exchange notes
- Counting even decimal value substrings in a binary string
- Check for Amicable Pair
- First uppercase letter in a string (Iterative and Recursive)
- Check if the given number K is enough to reach the end of an array
- Consecutive steps to roof top
- Power of a lens
- Program for centered nonagonal number
- Program to find covariance
- Time required to meet in equilateral triangle
- Program for class interval arithmetic mean
- Number of unmarked integers in a special sieve
- Print intermediate values in an array
- Number of Symmetric Relations on a Set
- Largest number that is not a perfect square
- Sum of XOR of all pairs in an array
- Sum of the alphabetical values of the characters of a string
- Minimum moves to reach target on a infinite line | Set 2
- Program to calculate GST from original and net prices
- Program to calculate volume of Octahedron
- Program for focal length of a lens
- Find speed of man from speed of stream and ratio of time with up and down streams
- Minimum array size after repeated replacement of even sum pair with sum
- Program for Surface Area of Octahedron
- Area of a square from diagonal length
- Average of Squares of Natural Numbers
- Minimum sum of multiplications of n numbers
- Program to implement standard deviation of grouped data
- Nonagonal number
- Minimum number of mails required to distribute all the questions
- Sum of all subsequences of a number
- Find an array element such that all elements are divisible by it
- Area of a Hexagon
- Frequencies of even and odd numbers in a matrix
- Last duplicate element in a sorted array
- Area of a Circumscribed Circle of a Square
- Calculate Volume of Dodecahedron
- Sorting array with conditional swapping
- Sum of largest divisible powers of p (a prime number) in a range
- Find final value if we double after every successful search in array
- C Program for Decimal to Binary Conversion
- Program to calculate area of Enneagon
- Completion time of a given process in round robin
- Pairs such that one is a power multiple of other
- Minimum Swaps required to group all 1's together
- Sum of middle row and column in Matrix
- Find all possible triangles with XOR of sides zero
- Program for Surface area of Dodecahedron
- Area of square Circumscribed by Circle
- Check whether a given matrix is orthogonal or not
- Check if it is possible to survive on Island
- Program to find the Area of Pentagon
- Check if the given two numbers are friendly pair or not
- Numbers having difference with digit sum more than s
- Squares of Matrix Diagonal Elements
- Largest number in [2, 3, .. n] which is co-prime with numbers in [2, 3, .. m]
- Finding the vertex, focus and directrix of a parabola
- Print uncommon elements from two sorted arrays
- Find N Geometric Means between A and B
- Sum of series with alternate signed squares of AP
- Sum of the series 1.2.3 + 2.3.4 + ... + n(n+1)(n+2)
- Most frequent element in an array
- Count n digit numbers divisible by given number
- Print a given matrix in counter-clock wise spiral form
- Sum of n digit numbers divisible by a given number
- Recursive sum of digits of a number formed by repeated appends
- Find value of (n^1 + n^2 + n^3 + n^4) mod 5 for given n
- Program to print binomial expansion series
- Find N Arithmetic Means between A and B
- Number of jump required of given length to reach a point of form (d, 0) from origin in 2D plane
- Number of subarrays with given product
- Find n-th Fortunate Number
- Invert actual bits of a number
- Coordinates of rectangle with given points lie inside
- Pythagorean Triplet with given sum
- Find the winner in nim-game
- Minimum adjacent swaps required to Sort Binary array
- Number of indexes with equal elements in given range
- Smallest even digits number not less than N
- Largest even digit number not greater than N
- Reverse Diagonal elements of matrix
- Find sum of all nodes of the given perfect binary tree
- Nicomachu's Theorem
- Stella Octangula Number
- Number of subarrays with m odd numbers
- Sum of product of each element with each element after it
- Maximum Perimeter Triangle from array
- Size of The Subarray With Maximum Sum
- Decimal Equivalent of Gray Code and its Inverse
- Smallest greater elements in whole array
- Finding a Non Transitive Coprime Triplet in a Range
- Number of loops of size k starting from a specific node
- Find largest d in array such that a + b + c = d
- Leftover element after performing alternate Bitwise OR and Bitwise XOR operations on adjacent pairs
- Split array in three equal sum subarrays
- Generate a list of n consecutive composite numbers (An interesting method)
- Check whether a very large number of the given form is a multiple of 3.
- Maximum possible difference of two subsets of an array
- Check whether a number is Emirpimes or not
- Odd numbers in N-th row of Pascal's Triangle
- Number of substrings of a string
- Moser-de Bruijn Sequence
- Hardy-Ramanujan Theorem
- Ways to multiply n elements with an associative operation
- Find array elements that are greater than average
- Combinatorics on ordered trees
- Count elements which divide all numbers in range L-R
- Find ceil of a/b without using ceil() function
- Maximum equlibrium sum in an array
- Maximum height of triangular arrangement of array values
- Program to check if the points are parallel to X axis or Y axis
- Slope of perpendicular to line
- Trick for modular division ( (x1 * x2 .... xn) / b ) mod (m)
- Maximize a value for a semicircle of given radius
- Program to print the hollow numerical parallelogram
- Find n-variables from n sum equations with one missing
- Segregate even and odd numbers | Set 3
- Counting values greater than equal to x after increments
- Sum of Areas of Rectangles possible for an array
- Count of divisors having more set bits than quotient on dividing N
- Bisymmetric matrix
- Sum of bitwise AND of all possible subsets of given set
- Cake number
- Dodecagonal number
- Max sum of M non-overlapping subarrays of size K
- Generate n-bit Gray Codes | Set 2
- Centrosymmetric Matrix
- Number of ways to merge two arrays such retaining order
- Maximum profit from sale of wines
- Prefixes with more a than b
- Find maximum and minimum distance between magnets
- Dodecahedral number
- Centered tetrahedral number
- Centered heptagonal number
- Check if a given matrix is Hankel or not
- Program for Centered Icosahedral Number
- Centered Square Number
- Sum of square-sums of first n natural numbers
- Reflection of a point at 180 degree rotation of another point
- Centered pentagonal number
- Sum of series 1*1*2! + 2*2*3! + ……..+ n*n*(n+1)!
- Tiling with Dominoes
- Print Fibonacci sequence using 2 variables
- Number of ways to form an array with distinct adjacent elements
- Program to print pattern
- Find value of k-th bit in binary representation
- Forming smallest array with given constraints
- Hexadecagonal number
- Find the other-end coordinates of diameter in a circle
- Range query for count of set bits
- Heptadecagonal number
- Triplets in array with absolute difference less than k
- Pentatope number
- Sum of series 1*1! + 2*2! + ……..+ n*n!
- N/3 repeated number in an array with O(1) space
- Construct an array from GCDs of consecutive elements in given array
- Centered Octagonal Number
- Optimal Storage on Tapes
- Lexicographically Kth smallest way to reach given coordinate from origin
- Construct array having X subsequences with maximum difference smaller than d
- Number whose XOR sum with given array is a given number k
- n-th term of series 1, 17, 98, 354......
- Number of arrays of size N whose elements are positive integers and sum is K
- Number of Transpositions in a Permutation
- Ways to choose three points with distance between the most distant points <= L
- Program to convert centimeter into meter and kilometer
- Find n terms of Fibonacci type series with given first two terms
- Finding Quadrant of a Coordinate with respect to a Circle
- Centered tridecagonal number
- Number expressed as sum of five consecutive integers
- Sum of product of r and rth Binomial Coefficient (r * nCr)
- Number of digits in N factorial to the power N
- Minimum value of "max + min" in a subarray
- Word Wrap problem ( Space optimized solution )
- Check if three straight lines are concurrent or not
- Program to print numeric pattern
- Check if strings are rotations of each other or not | Set 2
- Convert the array such that the GCD of the array becomes 1
- Find the mean vector of a Matrix
- Queries on number of Binary sub-matrices of Given size
- Closest product pair in an array
- Maximum product quadruple (sub-sequence of size 4) in array
- Subtract 1 without arithmetic operators
- XOR of Sum of every possible pair of an array
- Pentagonal Pyramidal Number
- Subsequence of size k with maximum possible GCD
- Find the GCD that lies in given range
- Largest gap in an array
- Hilbert Matrix
- Check whether a point lies inside a sphere or not
- Check if mirror image of a number is same if displayed in seven segment display
- Print concentric rectangular pattern in a 2d matrix
- Maximum value in a matrix which contain intersecting concentric submatrix
- Program to compare m^n and n^m
- Sum of product of consecutive Binomial Coefficients
- Number of distinct prime factors of first n natural numbers
- Heptagonal number
- Maximise the number of toys that can be purchased with amount K
- Make array elements equal in Minimum Steps
- Longest Decreasing Subsequence
- Check if a string has m consecutive 1's or 0's
- Number with set bits only between L-th and R-th index
- Program to find LCM of 2 numbers without using GCD
- Number of refills to complete the journey of N km
- Minimum adjacent swaps to move maximum and minimum to corners
- Number which has the maximum number of distinct prime factors in the range M to N
- Find the smallest positive number missing from an unsorted array | Set 2
- Duplicates in an array in O(n) time and by using O(1) extra space | Set-3
- Check if X can give change to every person in the Queue
- Number of squares of maximum area in a rectangle
- Maximum Product Subarray | Set 3
- Recursive program to check if number is palindrome or not
- Program to print the berth of given railway seat number
- Different ways to represent N as sum of K non-zero integers
- Program to find the Area of an Ellipse
- Sum of the series 3, 20, 63, 144, ......
- Maximize the number of segments of length p, q and r
- Degree of a Cycle Graph
- Number of sequences which has HEAD at alternate positions to the right of the first HEAD
- Surface Area and Volume of Hexagonal Prism
- Number of rectangles in a circle of radius R
- Bitwise OR (or | ) of a range
- Minimum positive integer required to split the array equally
- Minimum product in a grid of adjacent elements
- Number of triangles in a plane if no more than two points are collinear
- Check if a M-th fibonacci number divides N-th fibonacci number
- Find i’th index character in a binary string obtained after n iterations | Set 2
- Find (a^b)%m where 'b' is very large
- Number of odd and even results for every value of x in range [min, max] after performing N steps
- Program to calculate area of an Circle inscribed in a Square
- Nth non-Square number
- Sum of array elements excluding the elements which lie between a and b
- Find three integers less than or equal to N such that their LCM is maximum
- Print all prime numbers less than or equal to N
- Sort an array where a subarray of a sorted array is in reverse order
- Length of longest consecutive zeroes in the binary representation of a number.
- Program to find the nth Kynea number
- Area of circle inscribed within rhombus
- C Program to Compute Quotient and Remainder
- Minimum changes required to make two arrays identical
- Product of 2 numbers using recursion | Set 2
- Largest square that can be inscribed in a semicircle
- Matrix Chain Multiplication (A O(N^2) Solution)
- Ratio of mth and nth terms of an A. P. with given ratio of sums
- Find the Nth term of the series 2 + 6 + 13 + 23 + . . .
- Program to find Nth term of the series 3 , 5 , 21 , 51 , 95 , ...
- Program to find the sum of the series 23+ 45+ 75+..... upto N terms
- Check if any square (with one colored cell) can be divided into two equal parts
- Sum of the first N terms of the series 5,12, 23, 38....
- Sum of the first N terms of the series 2,10, 30, 68,....
- Number of unique permutations starting with 1 of a Binary String
- Find the altitude and area of an isosceles triangle
- Program to find the surface area of the square pyramid
- Program to find Nth term of series 0, 7, 18, 33, 51, 75, 102, 133, .....
- Program to find Nth term of series 0, 11, 28, 51, 79, 115, 156, 203, ....
- Number of different positions where a person can stand
- Sum of all Primes in a given range using Sieve of Eratosthenes
- Program for n-th even number
- Circumradius of the rectangle
- Program to find minimum number of lectures to attend to maintain 75%
- Program to find volume and surface area of pentagonal prism
- Number of solutions of n = x + n ⊕ x
- Divide an isosceles triangle in two parts with ratio of areas as n:m
- Check if a number is Quartan Prime or not
- Next greater number than N with exactly one bit different in binary representation of N
- Sum of first N natural numbers by taking powers of 2 as negative number
- Check if it is possible to move from (a, 0) to (b, 0) with given jumps
- Product of all primes in the range from L to R
- Area of circle which is inscribed in equilateral triangle
- Program to find the Nth term of series 5, 12, 21, 32, 45......
- Check if it is possible to sort the array after rotating it
- Find N digits number which is divisible by D
- Minimum value possible of a given function from the given set
- Find the value of max(f(x)) - min(f(x)) for a given F(x)
- Program to find the Circumcircle of any regular polygon
- Program to find the angles of a quadrilateral
- Number of solutions for the equation x + y + z <= n
- Sum of all the elements in an array divisible by a given number K
- Generate a number such that the frequency of each digit is digit times the frequency in given number
- Sum of lengths of all 12 edges of any rectangular parallelepiped
- Maximize number of nodes which are not part of any edge in a Graph
- Value of the series (1^3 + 2^3 + 3^3 + ... + n^3) mod 4 for a given n
- Number of mismatching bits in the binary representation of two integers
- Find Sum of Series 1^2 - 2^2 + 3^2 - 4^2 ..... upto n terms
- Program to find the Area of a Parallelogram
- Product of all pairwise consecutive elements in an Array
- Seating arrangement of n boys and girls alternatively around a round table
- Program to Calculate the Perimeter of a Decagon
- Find length of Diagonal of Hexagon
- Sum and Product of minimum and maximum element of an Array
- Calculate Stirling numbers which represents the number of ways to arrange r objects around n different circles
- Number of permutations of a string in which all the occurrences of a given character occurs together
- Problems not solved at the end of Nth day
- Program to find sum of 1 + x/2! + x^2/3! +...+x^n/(n+1)!
- Check whether the vowels in a string are in alphabetical order or not
- Program to find the Area and Perimeter of a Semicircle
- Number of segments where all elements are greater than X
- Count subarrays with all elements greater than K
- Number of triangles formed from a set of points on three lines
- Program to calculate area and perimeter of a rhombus whose diagonals are given
- Smallest number greater than or equal to N divisible by K
- Largest number not greater than N all the digits of which are odd
- Partition an array such into maximum increasing segments
- Find if array has an element whose value is half of array sum
- GCD of a number raised to some power and another number
- Farthest distance of a 0 from the center of a 2-D matrix
- Minimum cuts required to divide the Circle into equal parts
- Find the count of Strictly decreasing Subarrays
- Smallest subarray such that all elements are greater than K
- Count pieces of circle after N cuts
- Check whether product of digits at even places is divisible by sum of digits at odd place of a number
- Fibonacci problem (Value of Fib(N)*Fib(N) - Fib(N-1) * Fib(N+1))
- Find the number of primitive roots modulo prime
- Find the index of the left pointer after possible moves in the array
- Count pairs of numbers from 1 to N with Product divisible by their Sum
- Check if a number is formed by Concatenation of 1, 14 or 144 only
- Program to convert given Matrix to a Diagonal Matrix
- Partiton N into M parts such that difference between Max and Min part is smallest
- Longest rod that can be inserted within a right circular cylinder
- Sum of the digits of a number N written in all bases from 2 to N/2
- Radii of the three tangent circles of equal radius which are inscribed within a circle of given radius
- Minimum sum of the elements of an array after subtracting smaller elements from larger
- Find a point that lies inside exactly K given squares
- Find sum of a number and its maximum prime factor
- Add N digits to A such that it is divisible by B after each addition
- Number of moves required to guess a permutation.
- Find a range that covers all the elements of given N ranges
- Fill missing entries of a magic square
- Find the intersection of two Matrices
- Maximum number with same digit factorial product
- Find Bit whose minimum sequence flips makes all bits same
- Largest right circular cylinder within a frustum
- Largest right circular cylinder within a cube
- Find the element whose multiplication with -1 makes array sum 0
- Sum of the multiples of two numbers below N
- Sort the array in a given index range
- Minimum absolute difference of a number and its closest prime
- Summing the sum series
- Closest perfect square and its distance
- Average of remaining elements after removing K largest and K smallest elements from array
- Smallest subarray containing minimum and maximum values
- Largest Square that can be inscribed within a hexagon
- Generate elements of the array following given conditions
- Sum of kth powers of first n natural numbers
- Find elements of array using XOR of consecutive elements
- Find an integer X which is divisor of all except exactly one element in an array
- Find probability that a player wins when probabilities of hitting the target are given
- Biggest Reuleaux Triangle within a Square which is inscribed within a Right angle Triangle
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse
- Largest right circular cone that can be inscribed within a sphere which is inscribed within a cube
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon
- Program to check if a number is divisible by sum of its digits
- Check if possible to shuffle a matrix with adjacent movements
- Sum of all Submatrices of a Given Matrix
- Given number of matches played, find number of teams in tournament
- Find the side of the squares which are inclined diagonally and lined in a row
- Maximum number of people that can be killed with strength P
- Convert given integer X to the form 2^N - 1
- Generate an array of K elements such that sum of elements is N and the condition a[i] < a[i+1] <= 2*a[i] is met | Set 2
- Minimum integer such that it leaves a remainder 1 on dividing with any element from the range [2, N]
- Count Pairs from two arrays with even sum
- Check whether product of integers from a to b is positive , negative or zero
- Create a sequence whose XOR of elements is y
- Check if the number is even or odd whose digits and base (radix) is given
- Optimal Strategy for a Game | Set 2
- Check whether a number can be represented as sum of K distinct positive integers
- Number of edges in mirror image of Complete binary tree
- Queries to find the maximum Xor value between X and the nodes of a given level of a perfect binary tree
- Find the index which is the last to be reduced to zero after performing a given operation
- Generate two BSTs from the given array such that maximum height among them is minimum
- Find the sum of numbers from 1 to n excluding those which are powers of K
- Multiply a number by 15 without using * and / operators
- Check if the given matrix is increasing row and column wise
- Check if the given Prufer sequence is valid or not
- Count of all possible values of X such that A % X = B
- Exterior angle of a cyclic quadrilateral when the opposite interior angle is given
- Angle between a chord and a tangent when angle in the alternate segment is given
- Minimize the sum after choosing elements from the given three arrays
- Count of cells in a matrix which give a Fibonacci number when the count of adjacent cells is added
- Program to find the number of men initially
- Maximum sum in an array such that every element has exactly one adjacent element to it
- Subset with sum closest to zero
- Count number of ways to divide an array into two halves with same sum
- Number of subsets with zero sum
- Check if each element of the given array is the product of exactly K prime numbers
- Find maximum topics to prepare in order to pass the exam
- Find the original coordinates whose Manhattan distances are given
- Check whether a subsequence exists with sum equal to k if arr[i]> 2*arr[i-1]
- Length of the perpendicular bisector of the line joining the centers of two circles
- Find the sum of the ascii values of characters which are present at prime positions
- Queries to check whether all the elements can be made positive by flipping signs exactly K times
- Find a way to fill matrix with 1's and 0's in blank positions
- Maximum distance between two unequal elements
- Maximum subset sum such that no two elements in set have same digit in them
- Longest sub-sequence that satisfies the given conditions
- Partition first N natural number into two sets such that their sum is not coprime
- Find the radii of the circles which are lined in a row, and distance between the centers of first and last circle is given
- Find the side of the squares which are lined in a row, and distance between the centers of first and last square is given
- Number of triangles formed by joining vertices of n-sided polygon with two common sides and no common sides
- Compress the array into Ranges
- Minimum deletions required to make GCD of the array equal to 1
- Check whether it is possible to convert A into B
- Maximum previous and next element product
- Percentage increase in the cylinder if the height is increased by given percentage but radius remains constant
- Percentage increase in volume of the cube if a side of cube is increased by a given percentage
- Percentage increase in volume of the sphere if radius is increased by a given percentage
- Smallest number greater or equals to N such that it has no odd positioned bit set
- Find a subarray whose sum is divisible by size of the array
- Program to calculate the area of Kite
- Smallest perfect cube in an array
- Find the number of paths of length K in a directed graph
- Longest sub-array with equal number of alphabets and numeric characters
- Check if it is possible to redistribute the Array
- Number formed by the rightmost set bit in N
- Longest Subarray having strictly positive XOR
- Decimal to Binary using recursion and without using power operator
- Minimum and maximum possible length of the third side of a triangle
- Find the volume of rectangular right wedge
- Find minimum possible values of A, B and C when two of the (A + B), (A + C) and (B + C) are given
- Find the height of a right-angled triangle whose area is X times its base
- Arrange N elements in circular fashion such that all elements are strictly less than sum of adjacent elements
- Count of N digit numbers possible which satisfy the given conditions
- Sum of all second largest divisors after splitting a number into one or more parts