manishshaw1 hasn't contributed any 'Articles' yet!

- Given an array A[] and a number x, check for pair in A[] with sum as x
- Print reverse of a string using recursion
- Split an array into two equal Sum subarrays
- Thue-Morse sequence
- Middle term in the binomial expansion series
- Harmonic progression Sum
- Range sum query using Sparse Table
- Largest subset with sum of every pair as prime
- Print a closest string that does not contain adjacent duplicates
- Form a number using corner digits of powers
- Count sub-matrices having sum divisible 'k'
- Parallel Array
- Count subsequence of length three in a given string
- Find minimum number of currency notes and values that sum to given amount
- Sum of series (n/1) + (n/2) + (n/3) + (n/4) +.......+ (n/n)
- Snake case of a given sentence
- Sum of squares of binomial coefficients
- Sum of the series 2 + (2+4) + (2+4+6) + (2+4+6+8) + …… + (2+4+6+8+….+2n)
- Modular multiplicative inverse from 1 to n
- Program for distance between two points on earth
- Subsequence queries after removing substrings
- Diagonally Dominant Matrix
- Maximum number of chocolates to be distributed equally among k students
- Program for Mobius Function
- Check whether a given string is Heterogram or not
- Factorial of each element in Fibonacci series
- Rearrange an array such that arr[i] = i
- Panalphabetic window in a string
- Longest Common Anagram Subsequence
- Hoax Number
- Find the arrangement of queue at given time
- gOOGLE cASE of a given sentence
- Program to print 2D shapes
- Addition of two numbers without carry
- Count subsequences in first string which are anagrams of the second string
- Removing elements between the two zeros
- Longest sub-string having frequency of each character less than equal to k
- Program to calculate area of a Tetrahedron
- Program for Find sum of odd factors of a number
- Minimum pair sum operations to make array each element divisible by 4
- Optimal partition of an array into four parts
- Self Descriptive Number
- Generate all the binary number from 0 to n
- Find maximum power of a number that divides a factorial
- Program for length of a string using recursion
- Merge two strings in chunks of given size
- Number of decimal numbers of length k, that are strict monotone
- Possible timings
- Interchanging first and second halves of stings
- Program for Markov matrix
- Check for Amicable Pair
- Transform the string
- Program to print Fibonacci Triangle
- Sophie Germain Prime
- Connell Sequence
- Print matrix in zag-zag fashion
- Stern-Brocot Sequence
- Splitting a Numeric String
- Longest Uncommon Subsequence
- Removing row or column wise duplicates from matrix of characters
- Stable sort for descending order
- Minimum moves to reach target on a infinite line | Set 2
- Convert the string into palindrome string by changing only one character.
- Sum of the series 1 / 1 + (1 + 2) / (1 * 2) + (1 + 2 + 3) / (1 * 2 * 3) + - - - - - - upto n terms.
- Numbers with prime frequencies greater than or equal to k
- Reversing a queue using recursion
- Average of Squares of Natural Numbers
- Sum of products of all combination taken (1 to n) at a time
- Rotate the matrix right by K times
- Shuffle 2n integers as a1-b1-a2-b2-a3-b3-..bn without using extra space
- Number of unique triplets whose XOR is zero
- Program to print the pattern "GFG"
- Polybius Square Cipher
- Maximum sum of increasing order elements from n arrays
- Minimum Swaps required to group all 1's together
- Find i'th Index character in a binary string obtained after n iterations
- Find set of m-elements with difference of any two elements is divisible by k
- Primality Test | Set 5(Using Lucas-Lehmer Series)
- Minimum swaps required to bring all elements less than or equal to k together
- Count n digit numbers not having a particular digit
- Check whether a given matrix is orthogonal or not
- Find if a string starts and ends with another given string
- Program for length of the longest word in a sentence
- String with maximum number of unique characters
- Print Bracket Number
- Find value of y mod (2 raised to power x)
- Solve the Linear Equation of Single Variable
- Squares of Matrix Diagonal Elements
- Prime numbers after prime P with sum S
- Find ΔX which is added to numerator and denominator both of fraction (a/b) to convert it to another fraction (c/d)
- Program to print Crown Pattern
- Maximum number of segments of lengths a, b and c
- Largest number in [2, 3, .. n] which is co-prime with numbers in [2, 3, .. m]
- Print all triplets in sorted array that form AP
- Freivald’s Algorithm to check if a matrix is product of two
- Program to print Happy Holi
- Most frequent element in an array
- Count n digit numbers divisible by given number
- Minimum removals from array to make max - min <= K
- Least frequent element in an array
- Minimum increment by k operations to make all elements equal
- Sorting all array elements except one
- Find product of prime numbers between 1 to n
- Number of palindromic permutations | Set 1
- Number of pairs with Pandigital Concatenation
- Maximizing Probability of one type from N containers
- Minimum adjacent swaps required to Sort Binary array
- Sorting a Queue without extra space
- Maximum and Minimum Values of an Algebraic Expression
- Transform a string such that it has abcd..z as a subsequence
- Number of indexes with equal elements in given range
- Minimum removals to make array sum even
- Check for star graph
- Pandigital Product
- Find one extra character in a string
- Strong Password Suggester Program
- Smallest multiple of a given number made of digits 0 and 9 only
- Number of digits in 2 raised to power n
- Smallest even digits number not less than N
- Sorting array except elements in a subarray
- Almost Perfect Number
- Find sum of all nodes of the given perfect binary tree
- Delete middle element of a stack
- Equal sum array partition excluding a given element
- Perfect power (1, 4, 8, 9, 16, 25, 27, ...)
- Magical Indices in an array
- Print all sequences starting with n and consecutive difference limited to k
- Print equal sum sets of array (Partition problem) | Set 1
- Frugal Number
- Booth’s Multiplication Algorithm
- First digit in factorial of a number
- Minimum Sum Path in a Triangle
- Shift matrix elements row-wise by k
- Remove consecutive vowels from string
- Smallest greater elements in whole array
- Maximum Subarray Sum Excluding Certain Elements
- Count subarrays with same even and odd elements
- Euler's Four Square Identity
- Find largest d in array such that a + b + c = d
- Sum of special triplets having elements from 3 arrays
- Print sorted distinct elements of array
- Find duplicates in constant array with elements 0 to N-1 in O(1) space
- First element that appears even number of times in an array
- Split array in three equal sum subarrays
- Check if characters of one string can be swapped to form other
- Program to print reciprocal of letters
- Largest lexicographic array with at-most K consecutive swaps
- Ordered Prime Signature
- Maximum possible difference of two subsets of an array
- Program to check if first and the last characters of string are equal
- Check if two people starting from different points ever meet
- Subarray with no pair sum divisible by K
- Longest Common Substring (Space optimized DP solution)
- Balanced expression with replacement
- k-Rough Number or k-Jagged Number
- Maximum sum of absolute difference of an array
- Check if bitwise AND of any subset is power of two
- Median of two sorted arrays with different sizes in O(log(min(n, m)))
- Number whose sum of XOR with given array range is maximum
- Number of substrings of a string
- Count pairs in an array which have at least one digit common
- Hardy-Ramanujan Theorem
- Lagrange's four square theorem
- Given a number N in decimal base, find number of its digits in any base (base b)
- Number of ordered points pair satisfying line equation
- Minimum digits to remove to make a number Perfect Square
- Sum of digits written in different bases from 2 to n-1
- Count palindromic characteristics of a String
- Sort an array which contain 1 to n values
- Find words which are greater than given length k
- Find array elements that are greater than average
- Array with GCD of any of its subset belongs to the given array
- Print longest palindrome word in a sentence
- k-th missing element in sorted array
- Expressing a number as sum of consecutive | Set 2 (Using odd factors)
- Check a number is odd or even without modulus operator
- Maximize array elements upto given number
- Move matrix elements in given direction and add elements with same value
- Powers of 2 to required sum
- Check if all occurrences of a character appear together
- Sub array sum is prime or not
- Sorting array using Stacks
- Number of ways an array can be filled with 0s and 1s such that no consecutive elements are 1
- Prefix Sum of Matrix (Or 2D Array)
- Cost to Balance the parentheses
- Minimum product subset of an array
- Maximum steps to transform 0 to X with bitwise AND
- N-bonacci Numbers
- Find the other end point of a line with given one end and mid
- Count divisible pairs in an array
- Program to print Collatz Sequence
- Find maximum sum array of length less than or equal to m
- Find ceil of a/b without using ceil() function
- Program to print all the numbers divisible by 3 and 5 for a given number
- Longest substring having K distinct vowels
- Print array elements that are divisible by at-least one other
- Check if a queue can be sorted into another queue using a stack
- Minimum number using set bits of a given number
- Find n-variables from n sum equations with one missing
- Print equal sum sets of array (Partition Problem) | Set 2
- Replacing an element makes array elements consecutive
- Queries on sum of odd number digit sums of all the factors of a number
- Maximize the number by rearranging bits
- Sum of Areas of Rectangles possible for an array
- Count of divisors having more set bits than quotient on dividing N
- Bisymmetric matrix
- Sum of bitwise AND of all possible subsets of given set
- Merging and Sorting Two Unsorted Stacks
- Maximum product of indexes of next greater on left and right
- Maximum subset with bitwise OR equal to k
- Same Number Of Set Bits As N
- Find n terms of Fibonacci type series with given first two terms