nitin mittal hasn't contributed any 'Articles' yet!

- Count digits in a factorial | Set 2
- Minimum insertions to sort an array
- A Program to check if strings are rotations of each other or not
- Number of ways to cut a stick of length N into K pieces
- Lucky Numbers
- Program to find parity
- Median of two sorted arrays of same size
- Maximum sum such that no two elements are adjacent
- Babylonian method for square root
- Ceiling in a sorted array
- A Product Array Puzzle
- Write you own Power without using multiplication(*) and division(/) operators
- Longest Increasing Subsequence Size (N log N)
- Program to compute Log n
- Check if array elements are consecutive | Added Method 3
- KMP Algorithm for Pattern Searching
- Check if a number is multiple of 5 without using / and % operators
- Overlapping Subproblems Property in Dynamic Programming | DP-1
- Find whether an array is subset of another array | Added Method 3
- Optimized Naive Algorithm for Pattern Searching
- Find the maximum element in an array which is first increasing and then decreasing
- Longest Non-palindromic substring
- Sum of subset differences
- Longest Palindromic Subsequence | DP-12
- Find subarray with given sum | Set 1 (Nonnegative Numbers)
- Word Wrap Problem | DP-19
- Maximum Product Subarray
- Maximum Length Chain of Pairs | DP-20
- 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
- Lexicographic rank of a string
- Iterative Quick Sort
- Longest Palindromic Substring | Set 1
- Select a random number from stream, with O(1) space
- Construction of Longest Increasing Subsequence (N log N)
- Efficient program to calculate e^x
- Count numbers with same first and last digits
- Pancake sorting
- Unbounded Binary Search Example (Find the point where a monotonically increasing function becomes positive first time)
- Maximum Bipartite Matching
- Assembly Line Scheduling | DP-34
- Count all distinct pairs with difference equal to k
- Maximum length prefix of one string that occurs as subsequence in another
- Rearrange an array so that arr[i] becomes arr[arr[i]] with O(1) extra space
- Check if a number is multiple of 9 using bitwise operators
- Count all possible groups of size 2 or 3 that have sum as multiple of 3
- Find the number of zeroes
- Program for nth Catalan Number
- How to turn off a particular bit in a number?
- Horner's Method for Polynomial Evaluation
- Swap two nibbles in a byte
- Find the smallest number whose digits multiply to a given number n
- Find k closest elements to a given value
- Count number of binary strings without consecutive 1's
- Calculate the angle between hour hand and minute hand
- Count Possible Decodings of a given Digit Sequence
- Maximum Sum Path in Two Arrays
- Search in an almost sorted array
- Count all possible walks from a source to a destination with exactly k edges
- Count ways to reach the n'th stair
- Sort an array according to the order defined by another array
- 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
- Find Index of 0 to be replaced with 1 to get longest continuous sequence of 1s in a binary array
- Birthday Paradox
- Longest Even Length Substring such that Sum of First and Second Half is same
- Print all possible strings that can be made by placing spaces
- Minimize Cash Flow among a given set of friends who have borrowed money from each other
- Find the element that appears once in an array where every other element appears twice
- Count number of ways to reach a given score in a game
- Find position of an element in a sorted array of infinite numbers
- Count number of islands where every island is row-wise and column-wise separated
- Maximum profit by buying and selling a share at most twice
- Count possible ways to construct buildings
- Program for Rank of Matrix
- Find the largest pair sum in an unsorted array
- Find the point where maximum intervals overlap
- Euler's Totient Function
- Check if a number can be expressed as x^y (x raised to power y)
- Modular multiplicative inverse
- Find minimum number of coins that make a given value
- Find a pair with maximum product in array of Integers
- Rotate Matrix Elements
- Find the element that appears once in a sorted array
- Search an element in an array where difference between adjacent elements is 1
- Minimum number of squares whose sum equals to given number n
- Find length of the longest consecutive path from a given starting character
- Find number of solutions of a linear equation of n variables
- Minimum Initial Points to Reach Destination
- Count of n digit numbers whose sum of digits equals to given sum
- Find maximum of minimum for every window size in a given array
- Longest Repeating Subsequence
- Count even length binary sequences with same sum of first and second half bits
- Print all non-increasing sequences of sum equal to a given number x
- Find zeroes to be flipped so that number of consecutive 1's is maximized
- Bell Numbers (Number of ways to Partition a Set)
- Multiplicative order
- Check if edit distance between two strings is one
- Sum of all elements between k1'th and k2'th smallest elements
- Sum of Bitwise And of all pairs in a given array
- Count Derangements (Permutation such that no element appears in its original position)
- Partition a set into two subsets such that the difference of subset sums is minimum
- Fibonacci Search
- Compute nCr % p | Set 1 (Introduction and Dynamic Programming Solution)
- Find the subarray with least average
- Given a set, find XOR of the XOR's of all subsets.
- Count minimum steps to get the given desired array
- Program for Newton Raphson Method
- Determinant of a Matrix
- Sieve of Sundaram to print all primes smaller than n
- Count Fibonacci numbers in given range in O(Log n) time and O(1) space
- Sieve of Atkin
- Duplicates in an array in O(n) and by using O(1) extra space | Set-2
- Find all divisors of a natural number | Set 1
- Gray to Binary and Binary to Gray conversion
- Number of perfect squares between two given numbers
- Count number of ways to fill a "n x 4" grid using "1 x 4" tiles
- Count 'd' digit positive integers with 0 as a digit
- Count positive integers with 0 as a digit and maximum 'd' digits
- Ways to arrange Balls such that adjacent balls are of different types
- Count pairs with given sum
- Find minimum difference between any two elements
- Program to find the Roots of Quadratic equation
- Pangram Checking
- Fifth root of a number
- Find minimum number of merge operations to make an array palindrome
- Find a specific pair in Matrix
- Check if a number is Bleak
- Maximum product of a triplet (subsequnece of size 3) in array
- Maximum profit by buying and selling a share at most k times
- Minimum time to finish tasks without skipping two consecutive
- A matrix probability question
- K'th Non-repeating Character
- Find smallest number with given number of digits and sum of digits
- Convert min Heap to max Heap
- Sum of Fibonacci Numbers
- Generate all binary strings from given pattern
- Longest Common Increasing Subsequence (LCS + LIS)
- LCM of given array elements
- Minimum sum of two numbers formed from digits of an array
- Print shortest path to print a string on screen
- No of Factors of n!
- Find cubic root of a number
- The Lazy Caterer's Problem
- Almost Prime Numbers
- Palindromic Primes
- Program for Armstrong Numbers
- Maximum sum of i*arr[i] among all rotations of a given array
- 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 if given matrix is Toeplitz or not
- Floor in a Sorted Array
- Maximum Product Subarray | Set 2 (Using Two Traversals)
- GCD of two numbers when one of them can be very large
- Maximum games played by winner
- Stein's Algorithm for finding GCD
- Minimum Cost To Make Two Strings Identical
- Number of elements with odd factors in given range
- Sum of absolute differences of all pairs in a given array
- Find number of times a string occurs as a subsequence in given string
- Find Last Digit of a^b for Large Numbers
- Count Pairs Of Consecutive Zeros
- Active and Inactive cells after k Days
- Stepping Numbers
- Maximize value of (arr[i] - i) - (arr[j] - j) in an array
- Sorted subsequence of size 3 in linear time using constant space
- Find minimum elements after considering all possible transformations
- Find minimum sum such that one of every three consecutive elements is taken
- Minimum Initial Energy Required To Cross Street
- Find Maximum value of abs(i - j) * min(arr[i], arr[j]) in an array arr[]
- Finding number of digits in n'th Fibonacci number
- Finding sum of digits of a number until sum becomes single digit
- Smallest subarray whose sum is multiple of array size
- Least prime factor of numbers till n
- Check if a number can be expressed as a sum of consecutive numbers
- Bakhshali Approximation for computing square roots
- Length of the Longest Consecutive 1s in Binary Representation
- GCD and Fibonacci Numbers
- Maximize array sum after K negations | Set 1
- Emulating a 2-d array using 1-d array
- Count ways to spell a number with repeated digits
- Trapezoidal Rule for Approximate Value of Definite Integral
- Sum of all proper divisors of a natural number
- Largest palindrome which is product of two n-digit numbers
- Nth Even Fibonacci Number
- Find numbers with K odd divisors in a given range
- Even Fibonacci Numbers Sum
- Construct a unique matrix n x n for an input n
- Multiply a number with 10 without using multiplication operator
- Remainder with 7 for large numbers
- Count All Palindromic Subsequence in a given String
- Path with maximum average value
- Remove minimum number of characters so that two strings become anagram
- Number of flips to make binary string alternate | Set 1
- Maximum XOR value in matrix
- Juggler Sequence
- Maximum sum of pairs with specific difference
- Maximum sum of distinct numbers with LCM as N
- Emirp numbers
- Number of swaps to sort when only adjacent swapping allowed
- Find Equal (or Middle) Point in a sorted array with duplicates
- Circle and Lattice Points
- Maximum sum alternating subsequence
- Find elements larger than half of the elements in an array
- Maximum subsequence sum such that no three are consecutive
- Longest subsequence such that difference between adjacents is one
- Elements before which no element is bigger in array
- Sum of average of all subsets
- Find the only repeating element in a sorted array of size n
- Count minimum number of "move-to-front" moves to sort an array
- Find (a^b)%m where 'a' is very large
- Maximum decimal value path in a binary matrix
- Find bitonic point in given bitonic sequence
- Check if possible to move from given coordinate to desired coordinate
- Find the maximum number of handshakes
- Find maximum sum possible equal sum of three stacks
- Generate all palindromic numbers less than n
- Minimize the sum of product of two arrays with permutations allowed
- Smallest number to multiply to convert floating point to natural
- Find the highest occurring digit in prime numbers in a range
- Maximum subarray size, such that all subarrays of that size have sum less than k
- Count number of ways to reach destination in a Maze
- Mersenne Prime
- Find all distinct subset (or subsequence) sums of an array
- Efficient search in an array where difference between adjacent is 1
- Check if a number has bits in alternate pattern | Set 1
- Count natural numbers whose factorials are divisible by x but not y
- Find the first natural number whose factorial is divisible by x
- Minimum number of characters to be removed to make a binary string alternate
- Check if two strings are k-anagrams or not
- GCD of two numbers formed by n repeating x and y times
- Check length of a string is equal to the number appended at its last
- Choose k array elements such that difference of maximum and minimum is minimized
- Print the kth common factor of two numbers
- Queries for characters in a repeated string
- Last non-zero digit of a factorial
- Check whether Strings are k distance apart or not
- Minimum number of page turns to get to a desired page
- Find pairs in array whose sums already exist in array
- k-th prime factor of a given number
- Maximum determinant of a matrix with every values either 0 or n
- Cycle Sort
- Check horizontal and vertical symmetry in binary matrix
- 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
- Maximum path sum in a triangle.
- Maximum number of groups of size 3 containing two type of items
- Find number of transformation to make two Matrix Equal
- Maximum and minimum sums from two numbers with digit replacements
- Bresenham’s Line Generation Algorithm
- Find a subset with greatest geometric mean
- Sum of the products of all possible Subsets
- Friends Pairing Problem
- Largest subarray with GCD one
- Check if elements of array can be made equal by multiplying given prime numbers
- Find the missing number in Geometric Progression
- Range Queries for Frequencies of array elements
- Probability of getting at least K heads in N tosses of Coins
- Make all array elements equal with minimum cost
- Count minimum bits to flip such that XOR of A and B equal to C
- Constant time range add operation on an array
- Find power of power under mod of a prime
- Sum of all Subarrays | Set 1
- Hamming Distance between two strings
- Count of words whose i-th letter is either (i-1)-th, i-th, or (i+1)-th letter of given word
- Mid-Point Line Generation Algorithm
- Find all triplets with zero sum
- Maximum consecutive one’s (or zeros) in a binary array
- Maximum sum of smallest and second smallest in an array
- Program for Round Robin scheduling | Set 1
- Find duplicates under given constraints
- Queries on the sum of prime factor counts in a range
- Find sum of sum of all sub-sequences
- Find first and last positions of an element in a sorted array
- Sum of XOR of all possible subsets
- Lexicographically smallest array after at-most K consecutive swaps
- Program for First Fit algorithm in Memory Management
- Count all Quadruples from four arrays such that their XOR equals to 'x'
- Program for Best Fit algorithm in Memory Management
- Pizza cut problem (Or Circle Division by Lines)
- Program to find Normal and Trace of a matrix
- Find floor and ceil in an unsorted array
- Type of array and its maximum element
- Rearrange first N numbers to make them at K distance
- Subset with no pair sum divisible by K
- Sorting possible using size 3 subarray rotation
- Conditionally assign a value without using conditional and arithmetic operators
- A permutation where each element indicates either number of elements before or after it
- Summation of GCD of all the pairs up to N
- Largest permutation after at most k swaps
- Find maximum (or minimum) sum of a subarray of size k
- Refactorable number
- Construct an array from XOR of all elements of array except element at same index
- Check if a large number is divisible by 4 or not
- Replace all occurrences of string AB with C without using extra space
- Modify array to maximize sum of adjacent differences
- Sort 3 Integers without using if condition or using only max() function
- Find politeness of a number
- Count substrings with same first and last characters
- Minimum difference between max and min of all K-size subsets
- Check if a large number is divisible by 8 or not
- Sum of all substrings of a string representing a number | Set 1
- Count smaller values whose XOR with x is greater than x
- GCD of more than two (or array) numbers
- Fill an array based on frequency where elements are in range from 0 to n-1
- Number of subsequences of the form a^i b^j c^k
- Check if a large number is divisible by 6 or not
- Count rotations divisible by 4
- Check whether K-th bit is set or not
- XOR of all subarray XORs | Set 1
- Count pairs in a sorted array whose sum is less than x
- Given pairwise sum of n numbers, find the numbers
- Check if a large number is divisible by 9 or not
- Split an array into two equal Sum subarrays
- Check if product of every pair exists in an array
- Minimum sum of absolute difference of pairs of two arrays
- Find difference between sums of two diagonals
- Meta Strings (Check if two strings can become same after a swap in one string)
- Minimum toggles to partition a binary array so that it has first 0s then 1s
- Nth Square free number
- Check if a string follows a^nb^n pattern or not
- Program to check if a date is valid or not
- Subsequence with maximum odd sum
- Minimum cost for acquiring all coins with k extra coins allowed with every coin
- Check if a large number is divisible by 5 or not
- Number of occurrences of 2 as a digit in numbers from 0 to n
- Recursive function to check if a string is palindrome
- Program for average of an array (Iterative and Recursive)
- Program to check Strong Number
- Program to find second most frequent character
- Construct an array from its pair-sum array
- Puzzle | Program to find number of squares in a chessboard
- ShellSort
- Binary Insertion Sort
- Delete an element from array (Using two traversals and one traversal)
- Program to find transpose of a matrix
- Program to find area of a triangle
- Program to print first n Fibonacci Numbers | Set 1
- Print all pairs of anagrams in a given array of strings
- Find the number of valid parentheses expressions of given length
- Print All Distinct Elements of a given integer 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}
- Check if two numbers are equal without using arithmetic and comparison operators
- Find if a point lies inside a Circle
- Convert a number m to n using minimum number of given operations
- Find missing number in another array which is shuffled copy
- Prefix Sum Array - Implementation and Applications in Competitive Programming
- Minimum number of deletions to make a string palindrome
- Largest sum contiguous increasing subarray
- Program to print an array in Pendulum Arrangement
- Program to find the largest and smallest ASCII valued characters in a string
- Pandigital number in a given base
- Remove duplicates from sorted array
- Smallest Difference pair of values between two unsorted Arrays
- Remove minimum elements from array such that no three consecutive element are either increasing or decreasing
- Clustering/Partitioning an array such that sum of square differences is minimum
- Generate k digit numbers with digits in strictly increasing order
- Count numbers whose sum with x is equal to XOR with x
- Tail Recursion for Fibonacci
- Given a number n, find the first k digits of n^n
- Number of subarrays for which product and sum are equal
- Collect all coins in minimum number of steps
- Minimum steps to delete a string after repeated deletion of palindrome substrings
- Check if it is possible to sort an array with conditional swapping of adjacent allowed
- Minimum number of deletions to make a sorted sequence
- Program for multiplication of array elements
- k-th distinct (or non-repeating) element in an array.
- Find Index of given fibonacci number in constant time
- Check a large number is divisible by 16 or not
- Check if a large number is divisible by 25 or not
- Minimum number of deletions and insertions to transform one string into another
- An efficient way to check whether n-th Fibonacci number is multiple of 10
- Find index of an extra element present in one sorted array
- Queries for GCD of all numbers of an array except elements in a given range
- Find the n-th number made of even digits only
- Print all distinct characters of a string in order (3 Methods)
- Mid-Point Circle Drawing Algorithm
- Match Expression where a single special character in pattern can match one or more characters
- Minimum number of jumps to reach end | Set 2 (O(n) solution)
- Check if LCM of array elements is divisible by a prime number or not
- Maximum value of an integer for which factorial can be calculated on a machine
- Toggle case of a string using Bitwise Operators
- Sum of array elements using recursion
- Sequences of given length where every element is more than or equal to twice of previous
- Express a number as sum of consecutive numbers
- Automorphic Number
- Minimum revolutions to move center of a circle to a target
- Number of buildings facing the sun
- Find the minimum and maximum amount to buy all N candies
- Ways to sum to N using array elements with repetition allowed
- Find a Fixed Point in an array with duplicates allowed
- Fill array with 1's using minimum iterations of filling neighbors
- Find the minimum value to be added so that array becomes balanced
- Sum of divisors of factorial of a number
- Longest Subarray of non-negative Integers
- Find the occurrences of digit d in the range [0..n]
- Merge two binary Max Heaps
- Minimum positive integer to divide a number such that the result is an odd
- Maximum Length Bitonic Subarray | Set 2 (O(n) time and O(1) Space)
- Find other two sides of a right angle triangle
- Shuffle a deck of cards
- For each element in 1st array count elements less than or equal to it in 2nd array
- Program to count occurrence of a given character in a string
- Longest Bitonic Subsequence in O(n log n)
- Check if a number is jumbled or not
- Program to print all substrings of a given string
- Sum of minimum absolute difference of each array element
- Find start and ending index of an element in an unsorted array
- Find the transition point in a binary array
- Given GCD G and LCM L, find number of possible pairs (a, b)
- Find the Longest Increasing Subsequence in Circular manner
- Count Uppercase, Lowercase, special character and numeric values
- Count numbers with difference between number and its digit sum greater than specific value
- Cassini’s Identity
- Rearrange a string in sorted order followed by the integer sum
- Check if a number is a Krishnamurthy Number or not
- Extract maximum numeric value from a given string | Set 1 (General approach)
- Find all the patterns of "1(0+)1" in a given string | SET 1(General Approach)
- Count the numbers divisible by 'M' in a given range
- Add minimum number to an array so that the sum becomes even
- Toggle the last m bits
- Check if both halves of the string have same set of characters
- Program for Decimal to Octal Conversion
- Program for decimal to hexadecimal conversion
- Find length of longest subsequence of one string which is substring of another string
- Program to find root of an equations using secant method
- Min flips of continuous characters to make all characters same in a string
- Find the index of first 1 in a sorted array of 0's and 1's
- Number of times a number can be replaced by the sum of its digits until it only contains one digit
- Minimum rotations required to get the same string
- Find repeated character present first in a string
- n-th number with digits in {0, 1, 2, 3, 4, 5}
- Find first k natural numbers missing in given array
- Sum of distinct elements when elements are in range 1 to n
- Binomial Random Variables
- Merging two unsorted arrays in sorted order
- Program to find sum of prime numbers between 1 to n
- Permute a string by changing case
- RGYB(color) Slots Game to guess the correct color for the correct slot
- Sentence Palindrome (Palindrome after removing spaces, dots, .. etc)
- Minimum number of deletions so that no two consecutive are same
- Check if two numbers are equal without using comparison operators
- Insert minimum number in array so that sum of array becomes prime
- Program to print the sum of the given nth term
- Maximum sum subarray having sum less than or equal to given sum
- Minimum number with digits as 4 and 7 only and given sum
- Find minimum sum of factors of number
- Count ways to express a number as sum of consecutive numbers
- Find n-th lexicographically permutation of a string | Set 2
- Change all even bits in a number to 0
- Find whether a given integer is a power of 3 or not
- Rearrange an array in order - smallest, largest, 2nd smallest, 2nd largest, ..
- Difference between sums of odd and even digits
- Form the smallest number using at most one swap operation
- Longest Subarray having sum of elements atmost 'k'
- Sum triangle from array
- 1 to n bit numbers with no consecutive 1s in binary representation
- Frequency of a string in an array of strings
- Check whether a given point lies inside a rectangle or not
- Collect maximum points in an array with k moves
- Move all negative numbers to beginning and positive to end with constant extra space
- Number of jumps for a thief to cross walls
- Number of bitonic arrays of length n and consisting of elements from 1 to n
- Find minimum cost to buy all books
- Toggle all bits after most significant bit
- Find row number of a binary matrix having maximum number of 1s
- Longest increasing subarray
- Check Whether a number is Duck Number or not
- Find the sum of maximum difference possible from all subset of a given array.
- Sum of upper triangle and lower triangle
- Positive elements at even and negative at odd positions (Relative order not maintained)
- Program to check whether the given number is Buzz Number or not
- Find m-th summation of first n natural numbers.
- Betrothed numbers
- Minimum operations to make XOR of array zero
- Minimum Perimeter of n blocks
- Check whether a number is circular prime or not
- Program for sum of geometric series
- Generate all cyclic permutations of a number
- Check if a number is magic (Recursive sum of digits is 1)
- Longest substring of vowels
- Check if given array is almost sorted (elements are at-most one position away)
- Smallest number divisible by n and has at-least k trailing zeros
- Count unset bits of a number
- Minimum flips required to maximize a number with k set bits
- Represent a number as sum of minimum possible psuedobinary numbers
- Find element at given index after a number of rotations
- Value of continuous floor function : F(x) = F(floor(x/2)) + x
- Find element at given index after given range reversals
- Java Program for Stooge Sort
- Program to find the initials of a name.
- Count divisors of array multiplication
- Program for credit card number validation
- Product of factors of number
- Print N-bit binary numbers having more 1’s than 0’s in all prefixes
- Count entries equal to x in a special matrix
- Maximum value of |arr[i] - arr[j]| + |i - j|
- Program for cube sum of first n natural numbers
- Minimum number of increment-other operations to make all array elements equal.
- Queries for counts of multiples in an array
- Minimum and Maximum sum of absolute differences of pairs
- C Program for cube sum of first n natural numbers
- Find maximum sum of triplets in an array such than i < j < k and a[i] < a[j] < a[k]
- Minimum rotations to unlock a circular lock
- Series with largest GCD and sum equals to n
- Program to find simple interest
- N expressed as sum of 4 prime numbers
- Number of positions where a letter can be inserted such that a string becomes palindrome
- GCD of digits of a given number
- Count of numbers satisfying m + sum(m) + sum(sum(m)) = N
- Program to find compound interest
- Program for Fahrenheit to Celsius conversion
- Program for Celsius To Fahrenheit conversion
- Exponential Squaring (Fast Modulo Multiplication)
- Minimum flips to make all 1s in left and 0s in right | Set 2
- Find smallest subarray that contains all elements in same order
- Find Harmonic mean using Arithmetic mean and Geometric mean
- Program to print hollow rectangle or square star patterns
- Number of elements greater than modified mean in matrix
- Minimum jumps to reach last building in a matrix
- Sums of ASCII values of each word in a sentence
- Grouping Countries
- K-Primes (Numbers with k prime factors) in a range
- Program to Convert Radian to Degree
- Passing the Assignment
- Number of palindromic subsequences of length k where k <= 3
- Make alphabets using the elements of an array
- Program to implement ASCII lookup table
- Count rotations divisible by 8
- Smallest integer which has n factors or more
- Program to print ASCII Value of a character
- Johnson and Trotter algorithm
- Program to convert first character uppercase in a sentence
- Newman-Conway Sequence
- Program for Mobius Function
- Check if array contains contiguous integers with duplicates allowed
- Number of non-negative integral solutions of sum equation
- Find sum of odd factors of a number
- Program to calculate value of nCr
- Program for Stair Case Patterns
- gOOGLE cASE of a given sentence
- Longest sub-string having frequency of each character less than equal to k
- Max occurring divisor in an interval
- Kronecker Product of two matrices
- Program for Find sum of odd factors of a number
- Check if both halves of the string have at least one different character
- K distant string
- Count consonants in a string (Iterative and recursive methods)
- Check whether triangle is valid or not if sides are given
- Program for Markov matrix
- Program for Mean Absolute Deviation
- Maximum subarray sum in an array created after repeated concatenation
- Count elements smaller than or equal to x in a sorted matrix
- Program to implement t-test
- String from prefix and suffix of given two strings
- Longest Uncommon Subsequence
- Minimum moves to reach target on a infinite line | Set 2
- Convert the string into palindrome string by changing only one character.
- Divisibility by 12 for a large number
- Program to implement standard error of mean
- Find a Fixed Point (Value equal to index) in a given array | Duplicates Allowed
- Find the longest sub-array having exactly k odd numbers
- Count pairs from two sorted matrices with given sum
- Check if a number is sandwiched between primes
- Array sum after dividing numbers from previous
- Find an array element such that all elements are divisible by it
- Print n terms of Newman-Conway Sequence
- Longest prefix which is also suffix
- Array Index with same count of even or odd numbers on both sides
- Minimum removal to make palindrome permutation
- Sum of even numbers at even position
- Program for length of the longest word in a sentence
- String with maximum number of unique characters
- Maximum difference between two subsets of m elements
- Division without using '/' operator
- Find relative complement of two sorted arrays
- Check if two strings have a common substring
- Find value of (1^n + 2^n + 3^n + 4^n ) mod 5
- Count rows/columns with sum equals to diagonal sum
- Number of ordered pairs such that (Ai & Aj) = 0
- Number is divisible by 29 or not
- Maximum number of segments of lengths a, b and c
- Check given matrix is magic square or not
- Searching in an array where adjacent differ by at most k
- Evaluate an array expression with numbers, + and -
- Finding the vertex, focus and directrix of a parabola
- Maximum number of partitions that can be sorted individually to make sorted
- Converting seconds into days, hours, minutes and seconds
- Print all triplets in sorted array that form AP
- Number of strings of length N with no palindromic sub string
- Most frequent element in an array
- Count n digit numbers divisible by given number
- Least frequent element in an array
- Minimum increment by k operations to make all elements equal
- Shortest Un-ordered Subarray
- Program to calculate area of Circumcircle of an Equilateral Triangle
- Probability for three randomly chosen numbers to be in AP
- Product of unique prime factors of a number
- Pandigital Product
- Decimal Equivalent of Gray Code and its Inverse
- Minimum rooms for m events of n batches with given schedule
- Maximum possible difference of two subsets of an array
- Number of prefix sum prime in given range query
- Pattern to print X in a rectangular box
- Number of ways an array can be filled with 0s and 1s such that no consecutive elements are 1
- Sum of bitwise OR of all possible subsets of given set
- Lexicographically smallest string obtained after concatenating array
- Position of n among the numbers made of 2, 3, 5 & 7
- Find the other end point of a line with given one end and mid
- Check if a string is substring of another
- Find n-th term of series 1, 4, 27, 16, 125, 36, 343 .......
- Slope of perpendicular to line
- Count binary strings with twice zeros in first half
- Sum of square-sums of first n natural numbers