Chandan_Kumar hasn't contributed any 'Articles' yet!

- How to swap two numbers without using a temporary variable?
- Longest Increasing Subsequence Size (N log N)
- KMP Algorithm for Pattern Searching
- Find whether an array is subset of another array | Added Method 3
- Optimized Naive Algorithm for Pattern Searching
- Lexicographic rank of a string
- Iterative Quick Sort
- Construction of Longest Increasing Subsequence (N log N)
- Pancake sorting
- Optimal Strategy for a Game | DP-31
- Maximum Bipartite Matching
- Program for nth Catalan Number
- Multiply two polynomials
- Print all possible strings that can be made by placing spaces
- How to check if an instance of 8 puzzle is solvable?
- Find the missing number in Arithmetic Progression
- Factorial of a large number
- Find the point where maximum intervals overlap
- Modular multiplicative inverse
- Count numbers from 1 to n that have 4 as a digit
- Converting a Real Number (between 0 and 1) to Binary String
- Find length of the longest consecutive path from a given starting character
- Find the smallest twins in given range
- Count number of ways to divide a number in 4 parts
- Exactly n distinct prime factor numbers from a to b
- Generate all binary strings from given pattern
- Print shortest path to print a string on screen
- Count zeros in a row wise and column wise sorted matrix
- Palindromic Primes
- Program to find last digit of n'th Fibonnaci Number
- Program for Armstrong Numbers
- Print all n-digit numbers whose sum of digits equals to given sum
- Print all n-digit numbers with absolute difference between sum of even and odd digits is 1
- Find all even length binary sequences with same sum of first and second half bits
- Find number of times a string occurs as a subsequence in given string
- Reverse and Add Function
- Count Divisors of Factorial
- Nearest prime less than given number n
- Prime factors of LCM of array elements
- k-th prime factor of a given number
- Program for Goldbach’s Conjecture (Two Primes with given Sum)
- Difference of two large numbers
- Count substrings with same first and last characters
- Recaman's sequence
- 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
- Find if n can be written as product of k numbers
- Multiply large integers under large modulo
- Program to add two polynomials
- Perfect Number
- Print matrix after applying increment operations in M ranges
- Newton Forward And Backward Interpolation
- Sum of minimum difference between consecutive elements of an array
- Program to find Nth term in the given Series
- Program to find N-th term of the series a, b, b, c, c, c,.......
- Program to find Nth term of series 1, 3, 12, 60, 360…
- Program to calculate distance between two points in 3 D
- Sum of elements in range L-R where first half and second half is filled with odd and even numbers
- Sort 3 numbers
- Range product queries in an array
- Smallest divisor D of N such that gcd(D, M) is greater than 1
- Number of sub arrays with odd sum
- Largest number with maximum trailing nines which is less than N and greater than N-D
- Sum of XOR of sum of all pairs in an array
- Hyperfactorial of a number
- Addition of two number using '-' operator
- Number of handshakes such that a person shakes hands only once
- Find First element in AP which is multiple of given prime
- Check if a number can be expressed as 2^x + 2^y
- Minimum partitions of maximum size 2 and sum limited by given value
- Maximum set bit sum in array without considering adjacent elements
- Finding the Parity of a number Efficiently
- Alternate Fibonacci Numbers
- 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
- Total character pairs from two strings, with equal number of set bits in their ascii value
- Total number of Spanning trees in a Cycle Graph
- Largest triangle that can be inscribed in a semicircle
- Minimize the length of string by removing occurrence of only one character
- Largest square that can be inscribed in a semicircle
- Color N boxes using M colors such that K boxes have different color from the box on its left
- Sum of LCM(1, n), LCM(2, n), LCM(3, n), ... , LCM(n, n)
- A Sum Array Puzzle
- Product of N with its largest odd digit
- Find the number in a range having maximum product of the digits
- Find the n-th binary string in sorted order
- Minimum absolute difference between N and a power of 2
- Distribute N candies among K people
- Program to find nth term of the series 1 4 15 24 45 60 92
- 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
- Program to delete Nth digit of a Number
- Smallest perfect Cube divisible by all elements of an array
- Sum of P terms of an AP if Mth and Nth terms are given
- Largest subset where absolute difference of any two element is a power of 2
- Check whether two straight lines are orthogonal or not
- Maximum path sum in an Inverted triangle | SET 2
- Print prime numbers with prime sum of digits in an array
- Largest number less than or equal to N/2 which is coprime to N
- Biggest Reuleaux Triangle inscribed within a Square inscribed in an equilateral triangle
- Biggest Reuleaux Triangle inscirbed within a square inscribed in a semicircle
- Print all multiplicative primes <= N
- Program to implement Linear Extrapolation
- 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
- Program to check if a number is divisible by sum of its digits
- Midpoint ellipse drawing algorithm
- Count number of trailing zeros in (1^1)*(2^2)*(3^3)*(4^4)*..
- Count of sub-sets of size n with total element sum divisible by 3
- Sub-string that contains all lowercase alphabets after performing the given operation
- Find integers that divides maximum number of elements of the array
- Concentration of juice after mixing n glasses in equal proportion
- Count triplet pairs (A, B, C) of points in 2-D space that satisfy the given condition
- Find maximum operations to reduce N to 1
- An application on Bertrand's ballot theorem
- Maximize the sum of products of the degrees between any two vertices of the tree
- 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 permutation of 2N numbers such that the result of given expression is exactly 2K
- Minimum number of given moves required to make N divisible by 25
- Sum of even values and update queries on an array
- Pick points from array such that minimum distance is maximized
- Equation of circle when three points on the circle are given
- Given number of matches played, find number of teams in tournament
- Minimize sum of adjacent difference with removal of one element from array
- Missing even and odd elements from the given arrays
- Probability of A winning the match when individual probabilities of hitting the target given
- Check for an array element that is co-prime with all others
- Minimum number of replacements to make the binary string alternating | Set 2
- Sum of all odd factors of numbers in the range [l, r]
- Find Nth term of the series 1, 6, 18, 40, 75, ....
- Longest subarray such that adjacent elements have at least one common digit | Set - 2
- Program to check if an Array is Palindrome or not
- Minimum value among AND of elements of every subset of an array
- Find the maximum number of composite summands of a number
- Find the number of integers from 1 to n which contains digits 0's and 1's only