- C# | Substring() Method
- C# | IndexOfAny() Method
- Product of maximum in first array and minimum in second
- Find first and last digits of a number
- C# | IsNullOrEmpty() Method
- PHP str_pad to print string patterns
- PHP programs for printing pyramid patterns
- Python | Difference between iterable and iterator
- Setting up the environment in C#
- Comments in C#
- C# | PadRight() Method
- C# | Constructors
- Check if a binary string contains all permutations of length k
- PHP | gmp_mul() Function
- C# | ToLower() Method
- C# | ToUpper() Method
- C# | Copy() Method
- PHP | empty() Function
- C# | CopyTo() Method
- PHP | is_scalar() Function
- PHP | is_null() Function
- C# | Trim() Method
- PHP | is_callable() Function
- PHP | gettype() Function
- C# | TrimStart() and TrimEnd() Method
- C# | Remove() Method
- C# | Replace() Method
- C# | Insert() Method
- PHP | create_function() Function
- PHP | call_user_func() Function
- C# | Clone() Method
- PHP | ctype_punct() Function
- C# | String Properties
- PHP | ctype_cntrl() Function
- C# | IsNullOrWhiteSpace() Method
- C# | ToCharArray() Method
- C# | String
- C# | Interface
- C# | this Keyword
- C# | PadLeft() Method
- PHP | IntlChar::iscntrl() Function
- C# | Properties
- C# | Math.Sqrt() Method
- PHP | IntlChar::isprint() Function
- PHP | IntlChar::isupper() Function
- PHP | IntlChar::islower() Function
- PHP | IntlChar::isxdigit() Function
- PHP | IntlChar::ispunct() Function
- PHP | IntlChar::isspace() Function
- C# | String.Contains() Method
- C# | Math.Atan() Method
- C# | Math.Atan2() Method

- Count digits in a factorial | Set 2
- Remove characters from the first string which are present in the second string
- Write a program to reverse digits of a number
- Program to find whether a no is power of two
- Power Set
- Ugly Numbers
- Right-Truncatable Prime
- Write a program to print all permutations of a given string
- Minimum number of jumps to reach end
- Count set bits in an integer
- Count number of bits to be flipped to convert A to B
- Given a string, find its first non-repeating character
- Compute the minimum or maximum of two integers without branching
- Compute the integer absolute value (abs) without branching
- Babylonian method for square root
- Print all combinations of balanced parentheses
- Multiply two integers without using multiplication, division and bitwise operators, and no loops
- Find whether a given number is a power of 4 or not
- Print all combinations of points that can compose a given number
- Count of Binary Digit numbers smaller than N
- Find the two repeating elements in a given array
- Find Union and Intersection of two unsorted arrays
- Evaluation order of operands
- Program for Fibonacci numbers
- Next higher number with same number of set bits
- Check if a number is multiple of 5 without using / and % operators
- The Knight's tour problem | Backtracking-1
- Smallest of three integers without comparison operators
- Min Cost Path | DP-6
- Average of a stream of numbers
- Print all sequences of given length
- Coin Change | DP-7
- Binomial Coefficient | DP-9
- Hamiltonian Cycle | Backtracking-6
- Find a triplet that sum to a given value
- Palindrome Partitioning | DP-17
- Count numbers that don't contain 3
- Magic Square
- Sieve of Eratosthenes
- Find day of the week for a given date
- Given a number, find the next smallest palindrome
- Chinese Remainder Theorem | Set 1 (Introduction)
- Find the element that appears once
- Shuffle a given array using Fisher–Yates shuffle Algorithm
- Reservoir Sampling
- Pascal's Triangle
- Select a random number from stream, with O(1) space
- Program to find amount of water in a given glass
- Program to convert a given number to words
- Counting Sort
- Find position of the only set bit
- Check if a number is Palindrome
- Minimum insertions to form a palindrome | DP-28
- Dice Throw | DP-30
- Print all possible combinations of r elements in a given array of size n
- Count digits in given number N which divide N
- How to check if a given number is Fibonacci number?
- Count all possible groups of size 2 or 3 that have sum as multiple of 3
- Remove minimum elements from either side such that 2*min becomes more than max
- Smallest subarray with sum greater than a given value
- Horner's Method for Polynomial Evaluation
- Count Possible Decodings of a given Digit Sequence
- Find n'th number in a number system with only 3 and 4
- Print all increasing sequences of length k from first n natural numbers
- Minimize Cash Flow among a given set of friends who have borrowed money from each other
- Find maximum depth of nested parenthesis in a string
- Compute n! under modulo p
- Count inversions in an array | Set 3 (Using BIT)
- Program for Rank of Matrix
- Euler's Totient Function
- Shortest Common Supersequence
- Converting a Real Number (between 0 and 1) to Binary String
- Count of n digit numbers whose sum of digits equals to given sum
- Print string of odd length in 'X' format
- Find all possible outcomes of a given expression
- Longest Repeating Subsequence
- Count even length binary sequences with same sum of first and second half bits
- Modular Exponentiation (Power in Modular Arithmetic)
- Find Next Sparse Number
- Find the most frequent digit without using array/string
- Segmented Sieve
- Sum of all elements between k1'th and k2'th smallest elements
- Find the smallest twins in given range
- Count number of squares in a rectangle
- Print all Good numbers in given range
- Fibonacci Search
- Compute nCr % p | Set 2 (Lucas Theorem)
- Chinese Remainder Theorem | Set 2 (Inverse Modulo based Implementation)
- Primality Test | Set 3 (Miller–Rabin)
- Gaussian Elimination to Solve Linear Equations
- Count minimum steps to get the given desired array
- Sieve of Sundaram to print all primes smaller than n
- Farey Sequence
- How to avoid overflow in modular multiplication?
- Find all divisors of a natural number | Set 2
- Modular Division
- Exactly n distinct prime factor numbers from a to b
- Gray to Binary and Binary to Gray conversion
- Frobenius coin problem
- Convert from any base to decimal and vice versa
- Count numbers having 0 as a digit
- Matrix Exponentiation
- Volume of cube using its space diagonal
- Ways to arrange Balls such that adjacent balls are of different types
- Check if a number is a power of another number
- Find Square Root under Modulo p | Set 2 (Shanks Tonelli algorithm)
- Fifth root of a number
- Combinatorial Game Theory | Set 4 (Sprague - Grundy Theorem)
- Compute (a*b)%c such that (a%c) * (b%c) can be beyond range
- Kaprekar Constant
- Maximum product of a triplet (subsequnece of size 3) in array
- Maximum profit by buying and selling a share at most k times
- Find all combinations that add upto given number
- Find the minimum difference between Shifted tables of two numbers
- Convert min Heap to max Heap
- Sum of Fibonacci Numbers
- Find Cube Pairs | Set 2 (A n^(1/3) Solution)
- Program to add two fractions
- Code to generate the map of India (with explanation)
- Count digits in a factorial | Set 1
- Program to convert a given number to words | Set 2
- Roots of Unity
- Almost Prime Numbers
- Dynamic Programming | High-effort vs. Low-effort Tasks Problem
- Palindromic Primes
- Find all even length binary sequences with same sum of first and second half bits
- Floor in a Sorted Array
- GCD of two numbers when one of them can be very large
- N'th Smart Number
- Count Divisors of Factorial
- Multiples of 3 or 7
- Find the minimum value of m that satisfies ax + by = m and all values after m also satisfy
- Print all prime factors and their powers
- LCM of First n Natural Numbers
- Breaking an Integer to get Maximum Product
- Bakhshali Approximation for computing square roots
- Happy Number
- GCD and Fibonacci Numbers
- Count ways to spell a number with repeated digits
- Count number of solutions of x^2 = 1 (mod p) in given range
- Repeated subtraction among two numbers
- Equal Sum and XOR
- Smallest number divisible by first n numbers
- Nearest prime less than given number n
- Construct a unique matrix n x n for an input n
- Remainder with 7 for large numbers
- Count All Palindromic Subsequence in a given String
- Recursively break a number in 3 parts to get maximum sum
- Smallest number by rearranging digits of a given number
- Keith Number
- Kaprekar Number
- Smith Number
- Maximum sum of pairs with specific difference
- Emirp numbers
- Count numbers which can be constructed using two numbers
- Equidigital Numbers
- Maximum subsequence sum such that no three are consecutive
- Print matrix in diagonal pattern
- Number of possible Triangles in a Cartesian coordinate system
- Primorial of a number
- Find bitonic point in given bitonic sequence
- Circular primes less than n
- Number of sextuplets (or six values) that satisfy an equation
- Find the highest occurring digit in prime numbers in a range
- Nth character in Concatenated Decimal String
- Find sum of modulo K of first N natural number
- Mersenne Prime
- Super Prime
- Program for Chocolate and Wrapper Puzzle
- Highest power of 2 less than or equal to given number
- Check if all rows of a matrix are circular rotations of each other
- Check if two strings are k-anagrams or not
- Printing Heart Pattern in C
- Program for Perrin numbers
- LCS (Longest Common Subsequence) of three strings
- Sieve of Eratosthenes in 0(n) time complexity
- Smallest number with at least n digits in factorial
- Double factorial
- Partition a number into two divisble parts
- K-th smallest element after removing some integers from natural numbers
- k-th prime factor of a given number
- Queries on substring palindrome formation
- Sum of product of x and y such that floor(n/x) = y
- N-th multiple in sorted list of multiples of two numbers
- Maximum and minimum sums from two numbers with digit replacements
- Friends Pairing Problem
- N-th root of a number
- Probability of getting at least K heads in N tosses of Coins
- Count binary strings with k times appearing adjacent two set bits
- Generation of n numbers with given set of factors
- Find coordinates of the triangle given midpoint of each side
- Queries on the sum of prime factor counts in a range
- Largest subsequence having GCD greater than 1
- Program to find Normal and Trace of a matrix
- Program for Goldbach’s Conjecture (Two Primes with given Sum)
- Number with maximum number of prime factors
- Seeds (Or Seed Roots) of a number
- Summation of GCD of all the pairs up to N
- Prime Factorization using Sieve O(log n) for multiple queries
- Ways to represent a number as a sum of 1's and 2's
- Count all perfect divisors of a number
- Sum of two large numbers
- Find largest word in dictionary by deleting some characters of given string
- N'th palindrome of K digits
- Number Theory | Generators of finite cyclic group under addition
- Difference of two large numbers
- Find ways an Integer can be expressed as sum of n-th power of unique natural numbers
- Find longest sequence of 1's in binary representation with one flip
- Count substrings with same first and last characters
- Character replacement after removing duplicates from a string
- Lexicographically first palindromic string
- Minimum swaps to reach permuted array with at most 2 positions left swaps allowed
- Count smaller values whose XOR with x is greater than x
- Convert decimal fraction to binary number
- Check if frequency of each digit is less than the digit
- Count Divisors of n in O(n^1/3)
- Count pairs with sum as a prime number and less than n
- Largest number smaller than or equal to n and digits in non-decreasing order
- Finding LCM of more than two (or array) numbers without using GCD
- Window Sliding Technique
- Find if n can be written as product of k numbers
- Nth Square free number
- Programs to print Interesting Patterns
- Smallest length string with repeated replacement of two distinct adjacent
- Number of occurrences of 2 as a digit in numbers from 0 to n
- Program to find second most frequent character
- Solving f(n)= (1) + (2*3) + (4*5*6) ... n using Recursion
- Program to print a pattern of numbers
- Program to print pyramid pattern
- Program to evaluate simple expressions
- Find the number of valid parentheses expressions of given length
- Replace all ‘0’ with ‘5’ in an input Integer
- Perfect Number
- Program to add two binary strings
- Find if a point lies inside a Circle
- Divide number into two parts divisible by given numbers
- Doolittle Algorithm : LU Decomposition
- Pandigital number in a given base
- Binary representation of next number
- Given a number n, find the first k digits of n^n
- Generate all rotations of a given string
- Date after adding given number of days to the given date
- Sort an array after applying the given equation
- K-th Element of Two Sorted Arrays
- Primality Test | Set 4 (Solovay-Strassen)
- Find the n-th number made of even digits only
- Find the closest and smaller tidy number
- Interesting facts about Fibonacci numbers
- Fill array with 1's using minimum iterations of filling neighbors
- Multiple of x closest to n
- Sum of divisors of factorial of a number
- Find the occurrences of digit d in the range [0..n]
- Find numbers with n-divisors in a given range
- Minimum positive integer to divide a number such that the result is an odd
- Print a given matrix in reverse spiral form
- Print a String in wave pattern
- Find sum of digits in factorial of a number
- Program to calculate the value of sin(x) and cos(x)
- Numbers having Unique (or Distinct) digits
- Number of integral solutions of the equation x1 + x2 +.... + xN = k
- Check if a number N starts with 1 in b-base
- Slope of the line parallel to the line with the given slope
- Finding 'k' such that its modulus with each array element is same
- Print all substring of a number without any conversion
- Given GCD G and LCM L, find number of possible pairs (a, b)
- Find minimum value to assign all array elements so that array product becomes greater
- Divide large number represented as string
- Program for quotient and remainder of big number
- Finding n-th number made of prime digits (2, 3, 5 and 7) only
- Optimized Euler Totient Function for Multiple Evaluations
- To check divisibility of any large number by 999
- Program for Muller Method
- Extract maximum numeric value from a given string | Set 1 (General approach)
- Discrete logarithm (Find an integer k such that a^k is congruent modulo b)
- Print the pattern by using one loop | Set 2 (Using Continue Statement)
- Print the given pattern recursively
- Magic Square | Even Order
- Fibonacci number in an array
- Alternative Sorting
- Program for Binary To Decimal Conversion
- Divide the two given numbers by their common divisors
- Implement *, - and / operations using only + arithmetic operator
- Numbers with exactly 3 divisors
- Lychrel Number Implementation
- Calculating Factorials using Stirling Approximation
- Program for Stirling Interpolation Formula
- Program for Decimal to Binary Conversion
- Program for decimal to octal conversion
- Program for decimal to hexadecimal conversion
- Program for octal to decimal conversion
- Program for hexadecimal to decimal
- Program to calculate the number of odd days in given number of years
- Finding power of prime number p in n!
- Program to print solid and hollow square patterns
- Program to print solid and hollow rhombus patterns
- Find the last digit of given series
- Thue-Morse sequence
- Program to find root of an equations using secant method
- Josephus Problem Using Bit Magic
- Climb n-th stair with all jumps from 1 to n allowed (Three Different Approaches)
- Rotate a Matrix by 180 degree
- Find pair with maximum GCD in an array
- Demlo number (Square of 11...1)
- Minimum sum of differences with an element in an array
- Longest Prime Subarray after removing one element
- Number of N digit integers with weight W
- Binomial Random Variables
- Permute a string by changing case
- Form the largest number using at most one swap operation
- Reverse a number using stack
- Insert minimum number in array so that sum of array becomes prime
- Program to print the sum of the given nth term
- Twisted Prime Number
- Largest number with the given set of N digits that is divisible by 2, 3 and 5
- Minimize cost of operation to equalize tower heights
- A product array puzzle | Set 2 (O(1) Space)
- An interesting solution to get all prime numbers smaller than n
- Given two strings check which string makes a palindrome first
- Smallest element in an array that is repeated exactly 'k' times.
- Find smallest permutation of given number
- Find multiple of x closest to or a ^ b (a raised to power b)
- Longest Common Substring in an Array of Strings
- Length of the smallest sub-string consisting of maximum distinct characters
- Remove three consecutive duplicates from string
- Form the smallest number using at most one swap operation
- Find the n-th number whose binary representation is a palindrome
- Number of digits in the product of two numbers
- Balance pans using given weights that are powers of a number
- Decimal to binary conversion without using arithmetic operators
- Count even and odd digits in an Integer
- Program to print binary right angle triangle
- Maximum number of unique prime factors
- Total number of divisors for a given number
- Find n-th element in a series with only 2 digits (4 and 7) allowed | Set 2 (log(n) method)
- Binary representation of previous number
- Pattern Printing question asked in CGI Coding Round
- Hailstone Numbers
- Efficiently merging two sorted arrays with O(1) extra space
- Program for Next Fit algorithm in Memory Management
- Largest proper fraction with sum of numerator and denominator equal to a given number
- Find most significant set bit of a number
- Count total bits in a number
- Check if it is possible to reach vector B by rotating vector A and adding vector C to it
- Generate all cyclic permutations of a number
- Check if a number is magic (Recursive sum of digits is 1)
- Program to print hollow pyramid and diamond pattern
- Represent a number as sum of minimum possible psuedobinary numbers
- Maximize the binary matrix by filpping submatrix once
- Smallest number k such that the product of digits of k is equal to n
- Next higher number using atmost one swap operation
- Geometric mean (Two Methods)
- Prime Number of Set Bits in Binary Representation | Set 2
- Permutations to arrange N persons around a circular table
- Digit - Product - Sequence
- Efficient program to print the number of factors of n numbers
- Tribonacci Numbers
- Program to count digits in an integer (4 Different Methods)
- Decimal representation of given binary string is divisible by 10 or not
- Number of subarrays having product less than K
- Next higher palindromic number using the same set of digits
- Maximum value of |arr[i] - arr[j]| + |i - j|
- Queries for counts of multiples in an array
- Program to compare two fractions
- Reverse actual bits of the given number
- Queries to count the number of unordered co-prime pairs from 1 to N
- Cyclic Number
- Minimum rotations to unlock a circular lock
- Number of compositions of a natural number
- N expressed as sum of 4 prime numbers
- Check if number is palindrome or not in Octal
- Happy Numbers
- Program to print pyramid pattern
- Leonardo Number
- Number of subarrays whose minimum and maximum are same
- Count divisors of n that have at-least one digit common with n
- Newton Forward And Backward Interpolation
- Cholesky Decomposition : Matrix Decomposition
- 9's complement of a decimal number
- Find a number x such that sum of x and its digits is equal to given n.
- Smallest x such that 1*n, 2*n, ... x*n have all digits from 1 to 9
- Print k numbers where all pairs are divisible by m
- Pierpont Prime
- Secretary Problem (A Optimal Stopping Problem)
- Interquartile Range (IQR)
- Given a HUGE number check if it's a power of two.
- Program to print a rectangle pattern
- Pair with maximum GCD from two arrays
- Armstrong Numbers between two integers
- Divisible by 37 for large numbers
- LCM of digits of a given number
- Bessel's Interpolation
- Sgn value of a polynomial
- Queries to find whether a number has exactly four distinct factors or not
- Count Primes in Ranges
- Number of steps to convert to prime factors
- Double Base Palindrome
- Smallest root of the equation x^2 + s(x)*x - n = 0, where s(x) is the sum of digits of root x.
- Check if a large number is divisibility by 15
- Subsequences of size three in an array whose sum is divisible by m
- Co-prime pair with given sum minimum difference
- Program for dot product and cross product of two vectors
- Print symmetric double triangle pattern
- Inner reducing pattern printing
- Number of digits to be removed to make a number divisible by 3
- Representation of a number in powers of other
- Number of visible boxes after putting one inside another
- Ways to color a skewed tree such that parent and child have different colors
- Prime numbers and Fibonacci
- Exponential Squaring (Fast Modulo Multiplication)
- Largest number with prime digits
- Generate a pythagoras triplet from a single integer
- Total no of 1's in numbers
- k-th number in the Odd-Even sequence
- Check whether a number can be represented by sum of two squares
- Program to find last two digits of Nth Fibonacci number
- Count different numbers that can be generated such that there digits sum is equal to 'n'
- Prime factors of a big number
- Find a Number X whose sum with its digits is equal to N
- Program to print interesting pattern
- Special prime numbers
- One line function for factorial of a number
- Find the first, second and third minimum elements in an array
- Check if a large number is divisible by 13 or not
- Find combined mean and variance of two series
- Largest number with binary representation is m 1's and m-1 0's
- Bitwise Sieve
- Number of n digit stepping numbers
- Find Harmonic mean using Arithmetic mean and Geometric mean
- Program for Identity Matrix
- Find the sum of the series 1+11+111+1111+..... upto n terms
- Check if a number is divisible by 17 using bitwise operators
- Minimum De-arrangements present in array of AP (Arithmetic Progression)
- Unset the last m bits
- Queries for maximum difference between prime numbers in given ranges
- Find trace of matrix formed by adding Row-major and Column-major order of same matrix
- Find largest element from array without using conditional operator
- Variation in Nim Game
- Sum of first n even numbers
- Set the Left most unset bit
- Leyland Number
- Schröder–Hipparchus number
- Program to print numbers columns wise
- Program to print number pattern
- Program to print number with star pattern
- Harmonic progression Sum
- Sexy Prime
- Smallest perfect power of 2 greater than n (without using arithmetic operators)
- Program to print alphabet "A" using stars
- AKS Primality Test
- Print pair with maximum AND value in an array
- Count rotations divisible by 8
- Quotient and remainder dividing by 2^k (a power of 2)
- Smallest integer which has n factors or more
- Program to compute division upto n decimal places
- Newman–Shanks–Williams prime
- Balanced Prime
- Program to print reverse character bridge pattern
- Count unset bits in a range
- Pascal Matrix
- Maximum XOR using K numbers from 1 to n
- Queries on XOR of XORs of all subarrays
- Sum of largest prime factor of each number less than equal to n
- Smallest n digit number divisible by given three numbers
- Hosoya's Triangle
- Program to calculate area and volume of a Tetrahedron
- Maximum binomial coefficient term value
- Program to print numbers with diamond pattern
- Program to print right and left arrow patterns
- Leibniz harmonic triangle
- Convert the ASCII value sentence to its equivalent string
- Program for triangular patterns of alphabets
- Find maximum among x^(y^2) or y^(x^2) where x and y are given
- Find larger of x^y and y^x
- Minimum difference between groups of size two
- Find the number of consecutive zero at the end after multiplying n numbers
- Operations on Sparse Matrices
- Find the Surface area of a 3D figure
- Trinomial Triangle
- Maximum OR sum of sub-arrays of two different arrays
- Program to print a inverse pyramid character pattern
- Fibonomial coefficient and Fibonomial triangle
- Factorial of each element in Fibonacci series
- Container with Most Water
- XNOR of two numbers
- Program to implement Simpson's 3/8 rule
- Program to print 2D shapes
- Addition of two numbers without carry
- Find sum of even factors of a number
- Max occurring divisor in an interval
- Multiplication of two complex numbers given as strings
- Maximum absolute difference of value and index sums
- Print numbers in the range 1 to n having bits in alternate pattern
- Program to print the pattern ‘D’
- Program to print diagonal star patterns
- Check whether given three numbers are adjacent primes
- Divide 1 to n into two groups with minimum sum difference
- Latin alphabet cipher
- Increment a number by one by manipulating the bits
- Program to check if N is a Pentagonal Number
- Sum of the series 0.6, 0.06, 0.006, 0.0006, ...to n terms
- Wave Patterns
- Münchhausen Number
- A square matrix as sum of symmetric and skew-symmetric matrices
- Sum of series M/1 + (M+P)/2 + (M+2*P)/4 + (M+3*P)/8......up to infinite
- Program for Hexagonal Pattern
- Program to check diagonal matrix and scalar matrix
- Pernicious number
- Odious number
- Check if actual binary representation of a number is palindrome
- Program to print V and inverted-V pattern
- Toggle first and last bits of a number
- Toggle all even bits of a number
- Prime Triplet
- Toggle all odd bits of a number
- Sum of fourth power of first n even natural numbers
- Trimorphic Number
- Perfect Square String
- Hour-glass Pattern
- Self Descriptive Number
- Counting numbers of n digits that are monotone
- Program to print non square numbers
- Counting numbers whose difference from reverse is a product of k
- Minimum changes to a string to make all substrings distinct
- Program to print the arrow pattern
- Print numbers having first and last bits as the only set bits
- For every set bit of a number toggle bits of other
- Sierpinski triangle
- Decimal representation of given binary string is divisible by 20 or not
- Program to print DNA sequence
- Time required to meet in equilateral triangle
- Probability of reaching a point with 2 or 3 steps at a time
- Alternate bits of two numbers to create a new number
- Number of unmarked integers in a special sieve
- Program for triangular pattern (mirror image around 0)
- Set all odd bits of a number
- Number of Reflexive Relations on a Set
- Program for Arrow Star Pattern
- Sum of series 2/3 - 4/5 + 6/7 - 8/9 + ------- upto n terms
- Set all even bits of a number
- Space efficient iterative method to Fibonacci number
- Check if a large number is divisible by 20
- Total numbers with no repeated digits in a range
- Check if a number is divisible by 8 using bitwise operators
- Swap every two bits in bytes
- Check if binary string multiple of 3 using DFA
- Hollow lower triangular pattern
- Pattern of 1's inside 0's
- Minimum number of mails required to distribute all the questions
- Print factorials of a range in right aligned format
- Program to check Involutory Matrix
- Calculate speed, distance and time
- XOR of two numbers after making length of their binary representations equal
- Divide two integers without using multiplication, division and mod operator
- Swap major and minor diagonals of a square matrix
- Find the slope of the given number
- Sum of largest divisible powers of p (a prime number) in a range
- Calculate area of pentagon with given diagonal
- Writing power function for large numbers
- Fibbinary Numbers (No consecutive 1s in binary)
- Fibbinary Numbers (No consecutive 1s in binary) - O(1) Approach
- Minimum removal to make palindrome permutation
- Tribonacci Word
- Morse Code Implementation
- Program to print mirror image of Swastika Pattern
- Program to print circle pattern
- Closest Palindrome Number (absolute difference Is min)
- Find set of m-elements with difference of any two elements is divisible by k
- Program to print Square inside a Square
- Primality Test | Set 5(Using Lucas-Lehmer Series)
- Print bitwise AND set of a number N
- Solid square inside a hollow square | Pattern
- String with maximum number of unique characters
- Print Bracket Number
- Print first n Fibonacci Numbers using direct formula
- Program to print Crown Pattern
- Product of nodes at k-th level in a tree represented as string
- Print lower triangular matrix pattern from given array
- Evaluate an array expression with numbers, + and -
- Count special palindromes in a String
- Find N Geometric Means between A and B
- Convert String into Binary Sequence
- Count n digit numbers divisible by given number
- Program for Expressionless Face Pattern printing
- Program to print numbers in digital form
- Product of given N fractions in reduced form
- Rencontres Number (Counting partial derangements)
- Sum of pairwise products
- Power Set in Lexicographic order
- Maximum of sum and product of digits until number is reduced to a single digit
- n-th number whose sum of digits is ten
- Pandigital Product
- Variance and standard-deviation of a matrix
- Strong Password Suggester Program
- Number of digits in 2 raised to power n
- Smallest even digits number not less than N
- Largest even digit number not greater than N
- Nicomachu's Theorem
- Number of subarrays with m odd numbers
- Squared triangular number (Sum of cubes)
- Maximum Perimeter Triangle from array
- Frugal Number
- Minimal moves to form a string by adding characters or appending string itself
- Remove consecutive vowels from string
- Decimal Equivalent of Gray Code and its Inverse
- Cube Free Numbers smaller than n
- Finding a Non Transitive Coprime Triplet in a Range
- Minimum rooms for m events of n batches with given schedule
- Space optimization using bit manipulations
- Euler's Four Square Identity
- Tetrahedral Numbers
- Rosser's Theorem
- Bertrand's Postulate
- Euclid Euler Theorem
- 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.
- Twin Prime Numbers between 1 and n
- Check if two people starting from different points ever meet
- Program to find N-th term of the series a, b, b, c, c, c,.......
- Check whether a number is Emirpimes or not
- k-Rough Number or k-Jagged Number
- Check if bitwise AND of any subset is power of two
- Odd numbers in N-th row of Pascal's Triangle
- Moser-de Bruijn Sequence
- Nesbitt's Inequality
- First N natural can be divided into two sets with given difference and co-prime sums
- Ways to multiply n elements with an associative operation
- Number of common base strings for two strings
- Bitwise recursive addition of two integers
- Find the Largest Cube formed by Deleting minimum Digits from a number
- Blum Integer
- Program for sum of cos(x) series
- Making zero array by decrementing pairs of adjacent
- Find nth term of the Dragon Curve Sequence
- Finding n-th term of series 3, 13, 42, 108, 235…
- Check a number for Permutable Prime
- Find maximum element of each row in a matrix
- Arithmetic Number
- Check if a string is substring of another
- Program to display all alphabets from A to Z in uppercase and lowercase both
- Find ceil of a/b without using ceil() function
- Program to check if the points are parallel to X axis or Y axis
- Print prime numbers from 1 to N in reverse order
- Number of digits in the nth number made of given four digits
- Check if every index i has an index j such that sum of elements in both directions are equal
- Find n-variables from n sum equations with one missing
- Check if a number can be expressed as power | Set 2 (Using Log)
- Prime Number of Set Bits in Binary Representation | Set 1
- Find a permutation such that number of indices for which gcd(p[i], i) > 1 is exactly K
- Centrosymmetric Matrix
- Reflection of a point at 180 degree rotation of another point
- Check if sum of divisors of two numbers are same
- Newton's Divided Difference Interpolation Formula
- Product of first N factorials
- Number of arrays of size N whose elements are positive integers and sum is K
- Program to convert centimeter into meter and kilometer
- Finding Quadrant of a Coordinate with respect to a Circle
- Sum of product of r and rth Binomial Coefficient (r * nCr)
- Find the mean vector of a Matrix
- Students with maximum average score of three subjects
- Check if given number is a power of d where d is a power of 2
- K-th smallest element after removing given integers from natural numbers | Set 2
- Add n binary strings
- Subtract 1 without arithmetic operators
- Smarandache-Wellin Sequence
- Find the GCD that lies in given range
- Hilbert Matrix
- Program to check if a matrix is Binary matrix 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
- Number of Distinct Meeting Points on a Circular Road
- 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
- Check if the n-th term is odd or even in a Fibonacci like sequence
- Vieta's Formulas
- Find the frequency of a digit in a number
- Divide two integers without using multiplication, division and mod operator | Set2
- Sum of multiplication of triplet of divisors of a number
- Multiply the given number by 2 such that it is divisible by 10
- Program to find greater value between a^n and b^n
- Number of ones in the smallest repunit
- Number of squares of maximum area in a rectangle
- Recursive program to check if number is palindrome or not
- Stormer Numbers
- Find unique pairs such that each element is less than or equal to N
- Compute power of power k times % m
- Program to find the Area of an Ellipse
- Count the number of intervals in which a given value lies
- Find Largest Special Prime which is less than or equal to a given number
- Number of permutations such that sum of elements at odd index and even index are equal
- 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
- Minimum inverting factor in an array
- Remove leading zeros from an array
- Find (a^b)%m where 'b' is very large
- Number of Larger Elements on right side in a string
- Permutation of a string with maximum number of characters greater than its adjacent characters
- Total number of ways to place X and Y at n places such that no two X are together
- Maximum number of ones in a N*N matrix with given constraints
- Nth non-Square number
- Number of n digit stepping numbers | Space optimized solution
- Lexicographically smallest string formed by appending a character from the first K characters of a given string
- Egg Dropping Puzzle with 2 Eggs and K Floors
- Find the sum of non-prime elements in the given array
- Perpendicular distance between a point and a Line in 2 D
- Sum of elements in range L-R where first half and second half is filled with odd and even numbers
- Absolute difference between the first X and last X Digits of N
- Check if it is possible to create a polygon with a given angle
- Sum of all prime divisors of all the numbers in range L-R
- Number of elements smaller than root using preorder traversal of a BST
- Calculating n-th real root using binary search
- Maximum distinct lines passing through a single point
- Find gcd(a^n, c) where a, n and c can vary from 1 to 10^9
- Largest number with maximum trailing nines which is less than N and greater than N-D
- Number of ways to represent a number as sum of k fibonacci numbers
- Find indices of all occurrence of one string in other
- Sudo Placement[1.7] | Greatest Digital Root
- Sum of XOR of sum of all pairs in an array
- Hyperfactorial of a number
- Saddleback Search Algorithm in a 2D array
- Tetranacci Numbers
- Maximum sum by adding numbers with same number of set bits
- Cunningham chain
- Addition of two number using '-' operator
- Number of integral solutions for equation x = b*(sumofdigits(x)^a)+c
- Increment a number without using ++ or +
- Modular exponentiation (Recursive)
- Find next palindrome prime
- Eggs dropping puzzle (Binomial Coefficient and Binary Search Solution)
- Number of possible pairs of Hypotenuse and Area to form right angled triangle
- Difference between fundamental data types and derived data types
- Subtraction of two numbers using 2's Complement
- Print direction of moves such that you stay within the [-k, +k] boundary
- Maximum number of dots after throwing a dice N times
- Maximum possible intersection by moving centers of line segments
- Sum of elements of all partitions of number such that no element is less than K
- Number of Permutations such that no Three Terms forms Increasing Subsequence
- Check whether bits are in alternate pattern in the given range
- Finding the Parity of a number Efficiently
- Number of quadrilaterals possible from the given points
- Alternate Fibonacci Numbers
- Find the largest number that can be formed with the given digits
- 10's Complement of a decimal number
- N-th term in the series 1, 11, 55, 239, 991,....
- Number of ways a convex polygon of n+2 sides can split into triangles by connecting vertices
- Balanced expressions such that given positions have opening brackets | Set 2
- Sum of bitwise OR of all subarrays
- Modulo power for large numbers represented as strings
- Fascinating Number
- Program to find Nth term in the series 0, 2, 1, 3, 1, 5, 2, 7, 3,…
- Check if Decimal representation of an Octal number is divisible by 7
- Complement of a number with any base b
- Program for K Most Recently Used (MRU) Apps
- Sort first k values in ascending order and remaining n-k values in descending order
- Final cell position in the matrix
- Minimum number of square tiles required to fill the rectangular floor
- Find Nth term of series 1, 4, 15, 72, 420...
- Count number of triplets with product equal to given number with duplicates allowed
- Find the largest twins in given range
- Subarray of size k with given sum
- Pairs with GCD equal to one in the given range
- Find Nth term of the series 0, 2, 4, 8, 12, 18...
- Check whether a given point lies on or inside the rectangle | Set 3
- Program to find the percentage of difference between two numbers
- Find the Next perfect square greater than a given number
- Print elements that can be added to form a given sum
- Count number of primes in an array
- Triplet with no element divisible by 3 and sum N
- Minimum numbers needed to express every integer below N as a sum
- Program to calculate the profit sharing ratio
- Program to find sum of the given sequence
- Remove duplicates from a string in O(1) extra space
- Program for replacing one digit with other
- Program to invert bits of a number Efficiently
- Check if a number is divisible by 23 or not
- Count elements that are divisible by at-least one element in another array
- Find all angles of a triangle in 3D
- Minimum number of elements to be removed to make XOR maximum
- Find Nth term (A matrix exponentiation example)
- Generating subarrays using recursion
- Find Multiples of 2 or 3 or 5 less than or equal to N
- Sum of Factors of a Number using Prime Factorization
- Maximum occurred integer in n ranges | Set-2
- Hamming distance between two Integers
- Find a point such that sum of the Manhattan distances is minimized
- Area of a largest square fit in a right angle triangle
- Sum of first N terms of Quadratic Sequence 3 + 7 + 13 + ...
- Sum of Digits in a^n till a single digit
- Minimum changes required to make two arrays identical
- Product of 2 numbers using recursion | Set 2
- Probability of getting a sum on throwing 2 Dices N times
- Minimum no. of operations required to make all Array Elements Zero
- Perfect cube greater than a given number
- Area of the Largest square that can be inscribed in an ellipse
- Program to Find the value of cos(nΘ)
- Find other two sides and angles of a right angle triangle
- Split the number into N parts such that difference between the smallest and the largest part is minimum
- Program to find the value of tan(nΘ)
- Program to find the value of sin(nΘ)
- Find the Nth term of the series 2 + 6 + 13 + 23 + . . .
- Find the sum of series 3, -6, 12, -24 . . . upto N terms
- Check whether a given Number is Power-Isolated or not
- Maximum Sum of Products of Two Arrays
- Numbers less than N which are product of exactly two distinct prime numbers
- Ways to write N as sum of two or more positive integers | Set-2
- Count the number of carry operations required to add two numbers
- Number of values of b such that a = b + (a^b)
- Find two distinct prime numbers with given product
- Program to find the common ratio of three numbers
- Find 'N' number of solutions with the given inequality equations
- Print a number strictly less than a given number such that all its digits are distinct.
- Find count of Almost Prime numbers from 1 to N
- Check if it is possible to rearrange rectangles in a non-ascending order of breadths
- Find minimum possible digit sum after adding a number d
- Check if an integer can be expressed as a sum of two semi-primes
- Next greater number than N with exactly one bit different in binary representation of N
- Area of a circle inscribed in a rectangle which is inscribed in a semicircle
- Sum of first N natural numbers by taking powers of 2 as negative number
- Check if a number has digits in the given Order
- Find the value of the function Y = (X^6 + X^2 + 9894845) % 971
- Construct a frequency array of digits of the values obtained from x^1, x^2, ........, x^n
- Total money to be paid after traveling the given number of hours
- Find N digits number which is divisible by D
- Sum of nth terms of Modified Fibonacci series made by every pair of two arrays
- Next greater Number than N with the same quantity of digits A and B
- Check if the sum of digits of a number N divides it
- Pair of prime numbers with a given sum and minimum absolute difference
- Count pairs (i,j) such that (i+j) is divisible by A and B both
- Sum of squares of Fibonacci numbers
- Numbers in range [L, R] such that the count of their divisors is both even and prime
- Find nth Term of the Series 1 2 2 4 4 4 4 8 8 8 8 8 8 8 8 ...
- Arrangement of words without changing the relative position of vowel and consonants
- Gould's Sequence
- Check if a number is Primorial Prime or not
- Print all Prime Quadruplet of a number less than it
- Check if at least half array is reducible to zero by performing some operations
- Check if the given number is Ore number or not
- Ways of dividing a group into two halves such that two elements are in different groups
- Maximum count of equal numbers in an array after performing given operations
- Maximum difference elements that can added to a set
- Check if the given vectors are at equilibrium or not
- Check if the frequency of all the digits in a number is same
- Check if it is possible to serve customer queue with different notes
- Program to Convert Hexadecimal Number to Binary
- Maximize the sum of array by multiplying prefix of array with -1
- All possible numbers of N digits and base B without leading zeros
- Minimum number of bottles required to fill K glasses
- Program to Convert Octal Number to Binary Number
- Find minimum speed to finish all Jobs
- Least Greater number with same digit sum
- Check if there is any pair in a given range with GCD is divisible by k
- Equation of circle from centre and radius
- Minimum squares to evenly cut a rectangle
- Logarithm
- Sum of greatest odd divisor of numbers in given range
- Replace every element of the array by product of all other elements
- Immediate smallest number after re-arranging the digits of a given number
- Find the Product of first N Prime Numbers
- Sum of width (max and min diff) of all Subsequences
- Check whether a number has consecutive 0's in the given base or not
- Ways of selecting men and women from a group to make a team
- Find subsequences with maximum Bitwise AND and Bitwise OR
- Replace consonants with next immediate consonants alphabetically in a String
- Product of every K’th prime number in an array
- Program to evaluate the expression (√X+1)^6 + (√X-1)^6
- Count and Sum of composite elements in an array
- Equation of ellipse from its focus, directrix, and eccentricity
- Arrangement of the characters of a word such that all vowels are at odd places
- Check whether it is possible to make both arrays equal by modifying a single element
- Check if a triangle of positive area is possible with the given angles
- Minimum number of operations required to reduce N to 1
- Find permutation of n which is divisible by 3 but not divisible by 6
- Find the super power of a given Number
- Absolute Difference of all pairwise consecutive elements in an array
- Smallest prime divisor of a number
- Find the sum of all multiples of 2 and 5 below N
- Greatest Integer Function
- Minimum cost to reach a point N from 0 with two different operations allowed
- Find maximum distance between any city and station
- Check whether all the rotations of a given number is greater than or equal to the given number or not
- Minimum array insertions required to make consecutive difference <= K
- Sum of every K’th prime number in an array
- Check whether product of digits at even places of a number is divisible by K
- Product of all the Composite Numbers in an array
- Permutations of n things taken r at a time with k things together
- Find the sum of first N odd Fibonacci numbers
- Count ordered pairs with product less than N
- Find number from given list for which value of the function is closest to A
- Check if the Xor of the frequency of all digits of a number N is zero or not
- Lexicographically smallest permutation with no digits at Original Index
- Find maximum volume of a cuboid from the given perimeter and area
- Sum and Product of digits in a number that divide the number
- Smallest number greater than or equal to N divisible by K
- Minimize the value of N by applying the given operations
- Largest N digit number divisible by given three numbers
- Largest number not greater than N all the digits of which are odd
- Find the count of palindromic sub-string of a string in its sorted form
- Minimum swaps to group similar characters side by side?
- Find the count of Strictly decreasing Subarrays
- Count subarrays with Prime sum
- Largest cube that can be inscribed within the sphere
- Sum of all the multiples of 3 and 7 below N
- Largest sphere that can be inscribed inside a cube
- Count the number of words having sum of ASCII values less than and greater than k
- Count pieces of circle after N cuts
- Find Selling Price from given Profit Percentage and Cost
- Sort elements of array whose modulo with K yields P
- XOR of all elements of array with set bits equal to K
- Number of strictly increasing Buildings from right with distinct Colors
- Find minimum operations needed to make an Array beautiful
- Minimum number of cuts required to make circle segments equal sized
- Smallest prime number missing in an array
- Steps to reduce N to zero by subtracting its most significant digit at every step
- Find two numbers with sum and product both same as N
- Maximum litres of water that can be bought with N Rupees
- Maximum students to pass after giving bonus to everybody and not exceeding 100 marks
- Sum of multiples of A and B less than N
- LCM and HCF of fractions
- Sum of the elements from index L to R in an array when arr[i] = i * (-1)^i
- Probability of getting more value in third dice throw
- Check if the array has an element which is equal to product of remaining elements
- Count Triplets such that one of the numbers can be written as sum of the other two
- Sum of all odd length palindromic numbers within the range [L, R]
- Check whether the sum of prime elements of the array is prime or not
- Check if the given push and pop sequences of Stack is valid or not
- Minimum sum after subtracting multiples of k from the elements of the array
- Sum of all natural numbers in range L to R
- Count of pairs in an array whose sum is a perfect square
- Check whether an Array is Subarray of another Array
- Largest number in an array that is not a perfect cube
- Lexicographically smallest substring with maximum occurrences containing a's and b's only
- Count number of triplets (a, b, c) such that a^2 + b^2 = c^2 and 1 <= a <= b <= c <= n
- Minimum sum of the elements of an array after subtracting smaller elements from larger
- Nth number made up of odd digits only
- Sum of elements whose square root is present in the array
- Find element position in given monotonic sequence
- Maximum number with same digit factorial product
- Sum of Bitwise-OR of all subarrays of a given Array | Set 2
- Check if a number is Triperfect Number
- Harmonic Progression
- Count valid pairs in the array satisfying given conditions
- Sort the array in a given index range
- Color N boxes using M colors such that K boxes have different color from the box on its left
- Minimum removals in a number to be divisible by 10 power raised to K
- Split a number into 3 parts such that none of the parts is divisible by 3
- Binary Search a String
- Program to print the given H Pattern
- Check if the sum of primes is divisible by any prime from the array
- Sum of integers upto N with given unit digit (Set 2)
- Count numbers < = N whose difference with the count of primes upto them is > = K
- Largest palindromic prime in an array
- Recursive program to print all subsets with given sum
- Add index to characters and reverse the string
- Difference between Recursion and Iteration
- Minimize the maximum minimum difference after one removal from array
- Convert a String into a square matrix grid of characters
- Replace the maximum element in the array by coefficient of range
- Number of subarrays have bitwise OR >= K
- Print all integers that are sum of powers of two given numbers
- Possible cuts of a number such that maximum parts are divisible by 3
- Find the sum of the all amicable numbers up to N
- Find Pth term of a GP if Mth and Nth terms are given
- Count distinct elements in an array
- Count pairs in an array such that at least one element is prime
- Rearrange Odd and Even values in Alternate Fashion in Ascending Order
- Check whether the given character is in upper case, lower case or non alphabetic character
- Count strings that end with the given pattern
- Find safe cells in a matrix
- Predictor-Corrector or Modified-Euler method for solving Differential equation
- Program to implement Linear Extrapolation
- Remove characters from a numeric string such that string becomes divisible by 8
- Maximum given sized rectangles that can be cut out of a sheet of paper
- Midpoint ellipse drawing algorithm
- Check if a number can be represented as a sum of 2 triangular numbers
- Minimum operations of the given type required to make a complete graph
- Number of unique pairs in an array
- Array element with minimum sum of absolute differences
- Count operations of the given type required to reduce N to 0
- Program to find LCM of two Fibonnaci Numbers
- Maximum subarray sum in array formed by repeating the given array k times
- Split the array into equal sum parts according to given conditions
- Form lexicographically smallest string with minimum replacements having equal number of 0s, 1s and 2s
- Count of alphabets whose ASCII values can be formed with the digits of N
- Maximum number of teams that can be formed with given persons
- Minimum operations required to modify the array such that parity of adjacent elements is different
- Maximize the value of x + y + z such that ax + by + cz = n
- Maximum size of sub-array that satisfies the given condition
- Numbers of Length N having digits A and B and whose sum of digits contain only digits A and B
- Number of ways to choose an integer such that there are exactly K elements greater than it in the given array
- Find frequency of smallest value in an array
- Check whether the point (x, y) lies on a given line
- Generate a random permutation of elements from range [L, R] (Divide and Conquer)
- Sum of XOR of all subarrays
- Merge K sorted arrays | Set 3 ( Using Divide and Conquer Approach )
- Minimize the sum of the squares of the sum of elements of each group the array is divided into
- Source to destination in 2-D path with fixed sized jumps
- Find a positive number M such that gcd(N^M, N&M) is maximum
- Given two binary strings perform operation until B > 0 and print the result
- Count primes that can be expressed as sum of two consecutive primes and 1
- Minimum number of given moves required to make N divisible by 25
- Smallest Special Prime which is greater than or equal to a given number
- Ways to form an array having integers in given range such that total sum is divisible by 2
- Search element in a Spirally sorted Matrix
- Minimum number of elements that should be removed to make the array good
- Split the array into odd number of segments of odd lengths
- Maximum Bitwise AND pair from given range
- Find whether only two parallel lines contain all coordinates points or not
- XOR of a submatrix queries
- Find the number of distinct pairs of vertices which have a distance of exactly k in a tree
- Find Nth positive number whose digital root is X
- Minimum number of given powers of 2 required to represent a number
- Count numbers in range 1 to N which are divisible by X but not by Y
- Count pairs (p, q) such that p occurs in array at least q times and q occurs at least p times
- Longest subsequence such that adjacent elements have at least one common digit
- Minimum changes required to make a Catalan Sequence
- Check if product of digits of a number at even and odd places is equal
- Maximum subarray sum by flipping signs of at most K array elements
- Group consecutive characters of same type in a string
- Longest double string from a Palindrome
- Ways to place 4 items in n^2 positions such that no row/column contains more than one
- Find the count of numbers that can be formed using digits 3, 4 only and having length at max N.
- Sum of the series (1*2) + (2*3) + (3*4) + ...... upto n terms
- Maximum Primes whose sum is equal to given N
- Third last digit in 5^N for given N
- Find GCD of factorial of elements of given array
- Numbers that are not divisible by any number in the range [2, 10]
- Count of a, b & c after n seconds for given reproduction rate
- Sum of all i such that (2^i + 1) % 3 = 0 where i is in range [1, n]
- Find the K-th minimum element from an array concatenated M times
- Sum of all even factors of numbers in the range [l, r]
- Smallest integer > 1 which divides every element of the given array
- Maximize profit when divisibility by two numbers have associated profits
- Number of ways to remove elements to maximize arithmetic mean
- Sum of (maximum element - minimum element) for all the subsets of an array.
- Find the modified array after performing k operations of given type
- Find A and B from list of divisors
- Kth odd number in an array
- Minimum steps to make all the elements of the array divisible by 4
- Sum of elements in an array whose difference with the mean of another array is less than k
- Smallest and Largest N-digit perfect cubes
- Count pairs in array whose sum is divisible by K
- Find the sum of all Truncatable primes below N
- Minimum cuts required to convert a palindromic string to a different palindromic string
- Generate array with minimum sum which can be deleted in P steps
- Check if matrix can be converted to another matrix by transposing square sub-matrices
- First string from the given array whose reverse is also present in the same array
- Minimum changes required such that the string satisfies the given condition
- Smallest and Largest N-digit perfect squares
- Number of pairs from the first N natural numbers whose sum is divisible by K
- Maximum trace possible for any sub-matrix of the given matrix
- Maximum count of pairs which generate the same sum
- Count sub-arrays whose product is divisible by k
- Find a pair from the given array with maximum nCr value
- Maximum sum from three arrays such that picking elements consecutively from same is not allowed
- Find a distinct pair (x, y) in given range such that x divides y
- Find the value of XXXX.....(N times) % M where N is large
- Find the number of ways to divide number into four parts such that a = c and b = d
- Find the smallest number X such that X! contains at least Y trailing zeros.
- Find 2^(2^A) % B
- Count pairs with bitwise OR less than Max
- Number of ways of scoring R runs in B balls with at most W wickets
- Maximize the value of the given expression
- Loss when two items are sold at same price and same percentage profit/loss
- Maximize the median of the given array after adding K elements to the same array
- Replace all elements by difference of sums of positive and negative numbers after that element
- Sum of Fibonacci Numbers in a range
- Print all Semi-Prime Numbers less than or equal to N
- Count of sub-arrays whose elements can be re-arranged to form palindromes
- Partition the array into three equal sum segments
- Maximum number of continuous Automorphic numbers
- Determine the number of squares of unit area that a given line will pass through.
- Find the good permutation of first N natural numbers
- Sum of degrees of all nodes of a undirected graph
- Minimum array elements to be changed to make Recaman's sequence
- Times required by Simple interest for the Principal to become Y times itself
- Replace the odd positioned elements with their cubes and even positioned elements with their squares
- Maximum sum possible for a sub-sequence such that no two elements appear at a distance < K in the array
- Given an array and two integers l and r, find the kth largest element in the range [l, r]
- XOR of all the elements in the given range [L, R]
- Check whether factorial of N is divisible by sum of first N natural numbers
- Find the number of jumps to reach X in the number line from zero
- Count the number of operations required to reduce the given number
- Sum of two numbers where one number is represented as array of digits
- Sum of the series Kn + ( K(n-1) * (K-1)1 ) + ( K(n-2) * (K-1)2 ) + ....... (K-1)n
- Find the sum of the diagonal elements of the given N X N spiral matrix
- Length of the smallest number which is divisible by K and formed by using 1's only
- Increment odd positioned elements by 1 and decrement even positioned elements by 1 in an Array
- Find n positive integers that satisfy the given equations
- Print path from root to all nodes in a Complete Binary Tree
- Minimum number of changes such that elements are first Negative and then Positive
- Length of the longest substring with no consecutive same letters
- Divide a number into two parts
- Count the number of currency notes needed
- Program to find the maximum difference between the index of any two different numbers
- Find the lexicographically smallest string which satisfies the given condition
- Travelling Salesman Problem implementation using BackTracking
- Check if product of first N natural numbers is divisible by their sum
- Find the number of divisors of all numbers in the range [1, n]
- Find HCF of two numbers without using recursion or Euclidean algorithm
- Maximum sum of cocktail glass in a 2D matrix
- Count the pairs of vowels in the given string
- 3-digit Osiris number
- Calculate the loss incurred in selling the given items at discounted price
- Check if a number from every row can be selected such that xor of the numbers is greater than zero
- Find the node whose sum with X has maximum set bits
- Count the nodes in the given tree whose weight is even parity
- Program to Calculate e^x by Recursion
- Find the original coordinates whose Manhattan distances are given
- Count the number of digits of palindrome numbers in an array
- Sum of all palindrome numbers present in an Array