mohit kumar 29
mohit kumar 29
  1. Find all the numbers in a string using regular expression in Python
  2. Check if the sum of perfect squares in an array is divisible by x
  3. Find the nth term of the series 0, 8, 64, 216, 512, . . .
  4. Sum of elements whose square root is present in the array
  5. Leftmost and rightmost indices of the maximum and the minimum element of an array
  6. Sum of elements from an array having even parity
  7. Count numbers have all 1s together in binary representation
  8. The most occurring number in a string using Regex in python
  9. All pairs whose xor gives unique prime
  10. Count of numbers which can be made power of 2 by given operation
  11. Find elements of array using XOR of consecutive elements
  12. Find the Nth term of the series 9, 45, 243,1377
  13. Pairs from an array that satisfy the given condition
  14. Find the sum of first N terms of the series 2*3*5, 3*5*7, 4*7*9, ...
  15. Jump in rank of a student after updating marks
  16. Program to find the nth term of the series -2, 4, -6, 8....
  17. Program to find the Nth term of the series 0, 3/1, 8/3, 15/5........
  18. Find the sum of non-prime elements in the given array
  19. Print all safe primes below N
  20. Count pairs in an array such that at least one element is prime
  21. Check whether the sum of absolute difference of adjacent digits is Prime or not
  22. Print prime numbers with prime sum of digits in an array
  23. Print all multiplicative primes <= N
  24. Find the node whose xor with x gives minimum value
  25. Find the node whose xor with x gives maximum value
  26. Find the node whose sum with X has maximum set bits
  27. Find the node whose absolute difference with X gives maximum value
  28. Find the node whose sum with X has minimum set bits
  29. Find the node whose absolute difference with X gives minimum value
  30. Count the nodes whose weight is a perfect square
  31. Count the nodes in the given tree whose weight is prime
  32. Count the nodes in the given tree whose weight is even
  33. Find the root of the sub-tree whose weighted sum is minimum
  34. Find the root of the sub-tree whose weighted sum XOR with X is minimum
  35. Find the root of the sub-tree whose weighted sum XOR with X is maximum
  36. Count the nodes in the given tree whose weight is a power of two
  37. Count the nodes in the given tree whose weight is even parity
  38. Count the nodes in the given tree whose sum of digits of weight is odd
  39. Count the nodes of the given tree whose weighted string is a palindrome
  40. Count the nodes of the given tree whose weight has X as a factor
  41. Count the nodes of a tree whose weighted string does not contain any duplicate characters
  42. Count the nodes of a tree whose weighted string is an anagram of the given string
  43. Count the nodes of the tree which make a pangram when concatenated with the sub-tree nodes
  44. Python | Count the array elements with factors less than or equal to the factors of given x
You may use GeeksforGeeks CONTRIBUTE portal to help other geeks. For more info, please refer this.

  1. How to swap two numbers without using a temporary variable?
  2. Efficient way to multiply with 7
  3. Find the Number Occurring Odd Number of Times
  4. Find the Missing Number
  5. Two elements whose sum is closest to zero
  6. Find whether a given number is a power of 4 or not
  7. A Product Array Puzzle
  8. Check if array elements are consecutive | Added Method 3
  9. Smallest of three integers without comparison operators
  10. Partition problem | DP-18
  11. Find the element that appears once
  12. Generate n-bit Gray Codes
  13. Minimum insertions to form a palindrome | DP-28
  14. Print all possible strings of length k that can be formed from a set of n characters
  15. Print all possible paths from top left to bottom right of a mXn matrix
  16. Count all possible paths from top left to bottom right of a mXn matrix
  17. Find the first repeating element in an array of integers
  18. K'th Smallest/Largest Element in Unsorted Array | Set 2 (Expected Linear Time)
  19. Given a matrix of 'O' and 'X', find the largest subsquare surrounded by 'X'
  20. Find the element that appears once in an array where every other element appears twice
  21. Find the nearest smaller numbers on left side in an array
  22. Sum of minimum and maximum elements of all subarrays of size k.
  23. Count numbers from 1 to n that have 4 as a digit
  24. Count distinct elements in every window of size k
  25. Minimum Initial Points to Reach Destination
  26. Count of n digit numbers whose sum of digits equals to given sum
  27. Given an array of pairs, find all symmetric pairs in it
  28. Print a pattern without using any loop
  29. Find XOR of two number without using XOR operator
  30. Print individual digits as words without using if or switch
  31. Count Fibonacci numbers in given range in O(Log n) time and O(1) space
  32. Common elements in all rows of a given matrix
  33. Repeated subsequence of length 2 or more
  34. Count pairs formed by distinct element sub-arrays
  35. Find smallest range containing elements from k lists
  36. Find the minimum difference between Shifted tables of two numbers
  37. Longest Common Increasing Subsequence (LCS + LIS)
  38. Remove duplicates from an array of small primes
  39. Rearrange positive and negative numbers with constant extra space
  40. Calculate sum of all numbers present in a string
  41. Count digit groupings of a number with given constraints
  42. Count Distinct Subsequences
  43. Frequency Measuring Techniques for Competitive Programming
  44. Length of Longest sub-string that can be removed
  45. Count all sorted rows in a matrix
  46. Count all pairs with given XOR
  47. Print matrix in diagonal pattern
  48. Minimum sum of two numbers formed from digits of an array
  49. Convert to a string that is repetition of a substring of k length
  50. Find all distinct subset (or subsequence) sums of an array
  51. Find sum of divisors of all the divisors of a natural number
  52. Print all possible consecutive numbers with sum N
  53. Find pair with greatest product in array
  54. Find pairs in array whose sums already exist in array
  55. Find elements which are present in first array and not in second
  56. k-th prime factor of a given number
  57. Queries on substring palindrome formation
  58. Count of index pairs with equal elements in an array
  59. Maximum number of groups of size 3 containing two type of items
  60. Minimum time required to produce m items
  61. Check if reversing a sub array make the array sorted
  62. Allocate minimum number of pages
  63. Efficiently check if a string has all unique characters without using any additional data structure
  64. Largest subsequence having GCD greater than 1
  65. Nearest element with at-least one common prime factor
  66. Prime Factorization using Sieve O(log n) for multiple queries
  67. Maximum and Minimum in a square matrix.
  68. Count all pairs of an array which differ in K bits
  69. Ways to represent a number as a sum of 1's and 2's
  70. Find all pairs (a,b) and (c,d) in array which satisfy ab = cd
  71. Check if frequency of each digit is less than the digit
  72. Count pairs with sum as a prime number and less than n
  73. Noble integers in an array (count of greater elements is equal to value)
  74. Find if n can be written as product of k numbers
  75. Count the number of subarrays having a given XOR
  76. Minimum cost for acquiring all coins with k extra coins allowed with every coin
  77. Find the largest three elements in an array
  78. Check whether an array can be fit into another array rearranging the elements in the array
  79. Minimum number of Appends needed to make a string palindrome
  80. Find a peak element in a 2D array
  81. Count the number of ways to divide an array into three contiguous parts having equal sum
  82. Print all distinct characters of a string in order (3 Methods)
  83. k-th smallest absolute difference of two elements in an array
  84. Print a given matrix in reverse spiral form
  85. Print modified array after multiple array range increment operations
  86. Program to print all substrings of a given string
  87. Count subarrays having total distinct elements same as original array
  88. Find all pairs (a, b) in an array such that a % b = k
  89. Extract maximum numeric value from a given string | Set 1 (General approach)
  90. Elements of an array that are not divisible by any element of another array
  91. Divide the two given numbers by their common divisors
  92. Check whether the sum of absolute difference of adjacent digits is Prime or not
  93. Minimum insertions to form a palindrome with permutations allowed
  94. Nth Even length Palindrome
  95. Program to calculate the number of odd days in given number of years
  96. Find the character in first string that is present at minimum index in second string
  97. Find the overlapping sum of two arrays
  98. Program to print solid and hollow square patterns
  99. Count of integers of length N and value less than K such that they contain digits only from the given set
  100. Convert all substrings of length 'k' from base 'b' to decimal
  101. Check if the given string of words can be formed from words present in the dictionary
  102. Check if binary representation of a given number and its complement are anagram
  103. Next greater element in same order as input
  104. Remove minimum number of elements such that no common element exist in both array
  105. Evaluate a boolean expression represented as string
  106. Count subarrays with equal number of occurrences of two given elements
  107. Count of sub-sequences which satisfy the given condition
  108. Count number of paths whose weight is exactly X and has at-least one edge of weight M
  109. Count number of distinct pairs whose sum exists in the given array
  110. C++ Program for Longest Increasing Subsequence
  111. Check if two unsorted arrays (with duplicates allowed) have same elements
  112. Positive elements at even and negative at odd positions (Relative order not maintained)
  113. Program to find if a character is vowel or Consonant
  114. Array range queries over range queries
  115. Smallest number k such that the product of digits of k is equal to n
  116. Generate two output strings depending upon occurrence of character in input string.
  117. Given a n-ary tree, count number of nodes which have more number of children than parents
  118. Program for diamond pattern with different layers
  119. Number of subarrays having absolute sum greater than K | Set-2
  120. Mean of range in array
  121. Distance of closest zero to every element
  122. Combinations from n arrays picking one element from each array
  123. Tile Stacking Problem
  124. Cumulative frequency of count of each element in an unsorted array
  125. Print digit's position to be removed to make a number divisible by 6
  126. Maximum number of characters between any two same character in a string
  127. Print symmetric double triangle pattern
  128. Elements to be added so that all elements of a range are present in array
  129. Divisors of n-square that are not divisors of n
  130. Maximum Unique Element in every subarray of size K
  131. Check whether a number can be represented by sum of two squares
  132. Find if there is a rectangle in binary matrix with corners as 1
  133. Pair with given sum and maximum shortest distance from end
  134. Generate original array from an array that store the counts of greater elements on right
  135. Find minimum shift for longest common prefix
  136. Minimum jumps to reach last building in a matrix
  137. Program to find the minimum (or maximum) element of an array
  138. Find largest element from array without using conditional operator
  139. Program to print number with star pattern
  140. Program to find third side of triangle using law of cosines
  141. Check whether second string can be formed from characters of first string
  142. Partition into two subarrays of lengths k and (N - k) such that the difference of sums is maximum
  143. Largest subset with sum of every pair as prime
  144. Minimum number of points to be removed to get remaining points on one side of axis
  145. Count number of increasing subsequences of size k
  146. Smallest subarray with all occurrences of a most frequent element
  147. Count subarrays with equal number of 1's and 0's
  148. Maximum possible elements which are divisible by 2
  149. Check if the given string is the same as its reflection in a mirror
  150. Number of terms in Geometric Series with given conditions
  151. Program to print V and inverted-V pattern
  152. Find the position of the last removed element from the array
  153. Count maximum-length palindromes in a String
  154. Construct sum-array with sum of elements in given range
  155. Program to copy the contents of one array into another in the reverse order
  156. Count of numbers appearing in the given ranges at-least K times
  157. Find minimum length sub-array which has given sub-sequence in it
  158. Maximum sum of increasing order elements from n arrays
  159. Find i'th Index character in a binary string obtained after n iterations
  160. Most frequent element in an array
  161. Least frequent element in an array
  162. Find the only repetitive element between 1 to n-1
  163. Largest even digit number not greater than N
  164. Find largest d in array such that a + b + c = d
  165. Sum of special triplets having elements from 3 arrays
  166. Array range queries for elements with frequency same as value
  167. Count substrings with each character occurring at most k times
  168. Maximum possible difference of two subsets of an array
  169. Count pairs in an array which have at least one digit common
  170. Find the Largest Cube formed by Deleting minimum Digits from a number
  171. Longest substring having K distinct vowels
  172. Print array elements that are divisible by at-least one other
  173. Minimum number using set bits of a given number
  174. Program to print the hollow numerical parallelogram
  175. Count binary strings with twice zeros in first half
  176. Max sum of M non-overlapping subarrays of size K
  177. Find Sum of all unique sub-array sum for a given array.
  178. Prefixes with more a than b
  179. Find the only element that appears b times
  180. Print all triplets with given sum
  181. Compute power of power k times % m
  182. Count elements present in first array but not in second
  183. Minimum steps to reach end from start by performing multiplication and mod operations with array elements
  184. Maximum number by concatenating every element in a rotation of an array
  185. Minimum operations required to make all the elements distinct in an array
  186. Previous greater element
  187. Count of elements of an array present in every row of NxM matrix
  188. Number of Counterclockwise shifts to make a string palindrome
  189. First non-repeating character using one traversal of string | Set 2
  190. Find the Nth Mosaic number
  191. Egg Dropping Puzzle with 2 Eggs and K Floors
  192. Elements of first array that have more frequencies
  193. Sum of similarities of string with all of its suffixes
  194. Smallest sum contiguous subarray | Set-2
  195. Maximum bishops that can be placed on N*N chessboard
  196. All elements in an array are Same or not?
  197. Program to print Sine-Wave Pattern
  198. Sum of all elements repeating 'k' times in an array
  199. Check if a number is in given base or not
  200. Find next palindrome prime
  201. Counting frequencies of array elements
  202. Maximum profit after buying and selling the stocks
  203. Find the Missing Number in a sorted array
  204. Elements that occurred only once in the array
  205. Check if the first and last digit of the smallest number forms a prime
  206. Length of longest common subsequence containing vowels
  207. Minimum number of items to be delivered
  208. Longest subarray having maximum sum
  209. Find the largest after deleting the given elements
  210. Solve the Logical Expression given by string
  211. Find the Initial Array from given array after range sum queries
  212. Longest dividing subsequence
  213. Maximize the product of four factors of a Number
  214. Find minimum number of Log value needed to calculate Log upto N
  215. Longest Subarray with Sum greater than Equal to Zero
  216. Longest subarray having difference in the count of 1's and 0's equal to k
  217. Minimum number greater than the maximum of array which cannot be formed using the numbers in the array
  218. Minimum changes required to make two arrays identical
  219. Count common subsequence in two strings
  220. Minimum and Maximum prime numbers in an array
  221. Program to print Kite Pattern
  222. Minimum odd cost path in a matrix
  223. Maximize the value of A by replacing some of its digits with digits of B
  224. Find triplets in an array whose AND is maximum
  225. Find column with maximum sum in a Matrix
  226. Program to print the Zigzag pattern
  227. Find the k-th smallest divisor of a natural number N
  228. Pair with maximum difference in a Matrix
  229. Check if a pair with given absolute difference exists in a Matrix
  230. Find the sum of all highest occurring elements in an Array
  231. Sum of all minimum occurring elements in an Array
  232. Program to print Hut Star pattern
  233. Product of non-repeating (distinct) elements in an Array
  234. Sum of all prime numbers in an Array
  235. Product of all prime numbers in an Array
  236. Program to Print Mirrored Hollow Parallelogram
  237. Maximum number of Unique integers in Sub-Array of given size
  238. Find the smallest after deleting given elements
  239. Remove duplicates from unsorted array
  240. Find the k largest numbers after deleting the given elements
  241. Find the k smallest numbers after deleting given elements
  242. Number of leading zeros in binary representation of a given number
  243. Check if a number is a Mystery Number
  244. Find the Product of first N Prime Numbers
  245. Find subsequences with maximum Bitwise AND and Bitwise OR
  246. Count and Sum of composite elements in an array
  247. Find maximum distance between any city and station
  248. Program to find Prime Numbers Between given Interval
  249. Product of all the Composite Numbers in an array
  250. Convert given array to Arithmetic Progression by adding an element
  251. Replace each element by the difference of the total size of the array and frequency of that element
  252. Sum of array Elements without using loops and recursion
  253. Magical Pattern
  254. Count pairs in an array such that both elements has equal set bits
  255. Largest number not greater than N all the digits of which are odd
  256. Find a number that divides maximum array elements
  257. Check if the array has an element which is equal to sum of all the remaining elements
  258. Check whether the frequencies of all the characters in a string are prime or not
  259. Count pairs from two arrays whose modulo operation yields K
  260. Find all numbers that divide maximum array elements
  261. Count Triplets such that one of the numbers can be written as sum of the other two
  262. Number of leaf nodes in the subtree of every node of an n-ary tree
  263. Minimize the number of steps required to reach the end of the array
  264. Find maximum element of each column in a matrix
  265. Maximum length substring with highest frequency in a string
  266. Sum of elements in an array having prime frequency
  267. Find smallest and largest element from square matrix diagonals
  268. Find the sum of Eigen Values of the given N*N matrix
  269. Find the largest interval that contains exactly one of the given N integers.
  270. Find alphabet in a Matrix which has maximum number of stars around it
  271. Find a sub matrix with maximum XOR
  272. Minimum Distance Between Words of a String
  273. Count the number of special permutations
  274. Count numbers in a range having GCD of powers of prime factors equal to 1
  275. LCM of N numbers modulo M
  276. Minimum in an array which is first decreasing then increasing
  277. Minimum steps to reach any of the boundary edges of a matrix | Set 1
  278. Form N-copy string with add, remove and append operations
  279. Find minimum x such that (x % k) * (x / k) == n
  280. Sum of kth powers of first n natural numbers
  281. Find elements of array using XOR of consecutive elements
  282. Find the maximum possible value of the minimum value of modified array
  283. Area of Reuleaux Triangle
  284. Biggest Reuleaux Triangle within A Square
  285. Count pairs in an array that hold i+j= arr[i]+arr[j]
  286. Reach the numbers by making jumps of two given lengths
  287. Largest hexagon that can be inscribed within an equilateral triangle
  288. A Sum Array Puzzle
  289. Diagonal of a Regular Heptagon
  290. Diagonal of a Regular Decagon
  291. Length of Diagonal of a n-sided regular polygon
  292. Generate all rotations of a number
  293. Count number of pairs (i, j) such that arr[i] * arr[j] > arr[i] + arr[j]
  294. How to delete an element from the Set by passing its value in C++
  295. Generate permutation of 1 to N such that absolute difference of consecutive numbers give K distinct integers
  296. Count rows in a matrix that consist of same element
  297. Number of subarrays have bitwise OR >= K
  298. Smallest multiple of 3 which consists of three given non-zero digits
  299. Minimum number of sets with numbers less than Y
  300. Minimum number N such that total set bits of all numbers from 1 to N is at-least X
  301. Count pairs of parentheses sequences such that parentheses are balanced
  302. Minimum steps required to convert X to Y where a binary matrix represents the possible conversions
  303. Distribute N candies among K people
  304. Program to find nth term of the series 1 4 15 24 45 60 92
  305. Possible cuts of a number such that maximum parts are divisible by 3
  306. First and Last Three Bits
  307. K length words that can be formed from given characters without repetition
  308. Program to print Step Pattern
  309. Length of the longest substring with consecutive characters
  310. Largest sub-set possible for an array satisfying the given condition
  311. Ways to paint N paintings such that adjacent paintings don't have same colors
  312. Maximum length subarray with LCM equal to product
  313. Find probability of selecting element from kth column after N iterations
  314. Find the sum of the all amicable numbers up to N
  315. Sum of P terms of an AP if Mth and Nth terms are given
  316. Ternary Search
  317. Biggest Reuleaux Triangle within a Square which is inscribed within a Circle
  318. Biggest Reuleaux Triangle within a Square which is inscribed within a Right angle Triangle
  319. Largest right circular cylinder that can be inscribed within a cone which is in turn inscribed within a cube
  320. Print all Proth primes up to N
  321. Find Pth term of a GP if Mth and Nth terms are given
  322. Count distinct elements in an array
  323. Count of strings that become equal to one of the two strings after one removal
  324. Rearrange Odd and Even values in Alternate Fashion in Ascending Order
  325. Count number of sub-sequences with GCD 1
  326. Largest number less than or equal to N/2 which is coprime to N
  327. Reverse Middle X Characters
  328. Find the area of largest circle inscribed in ellipse
  329. Print multiples of Unit Digit of Given Number
  330. Rectangle with minimum possible difference between the length and the width
  331. Count strings that end with the given pattern
  332. Biggest Reuleaux Triangle inscribed within a Square inscribed in an equilateral triangle
  333. Biggest Reuleaux Triangle inscirbed within a square inscribed in a semicircle
  334. Count of values of x <= n for which (n XOR x) = (n - x)
  335. Generate lexicographically smallest string of 0, 1 and 2 with adjacent swaps allowed
  336. Find the final X and Y when they are Altering under given condition
  337. Count the number of survivors
  338. Remove characters from a numeric string such that string becomes divisible by 8
  339. Remove any corner X rows and columns from a matrix
  340. Count of pairs of (i, j) such that ((n % i) % j) % n is maximized
  341. Largest sphere that can be inscribed in a right circular cylinder inscribed in a frustum
  342. Minimum positive integer divisible by C and is not in range [A, B]
  343. Count all Prime Length Palindromic Substrings
  344. Find minimum difference between any two elements | Set 2
  345. Find Intersection of all Intervals
  346. Maximum length subsequence such that adjacent elements in the subsequence have a common factor
  347. Number of strings that satisfy the given condition
  348. Check if a string can be converted to another string by replacing vowels and consonants
  349. Sum of XOR of all subarrays
  350. Sum of bitwise AND of all subarrays
  351. Minimum index i such that all the elements from index i to given index are equal
  352. Find the longest Fibonacci-like subarray of the given array
  353. Split an array into groups of 3 such that X3 is divisible by X2 and X2 is divisible by X1
  354. Queries for number of distinct integers in Suffix
  355. Maximum positive integer divisible by C and is in the range [A, B]
  356. Ways to form an array having integers in given range such that total sum is divisible by 2
  357. Select numbers in such way to maximize the amount of money
  358. Check whether the number can be made perfect square after adding 1
  359. Number of Hamiltonian cycle
  360. Split the array into odd number of segments of odd lengths
  361. Check if an array of 1s and 2s can be divided into 2 parts with equal sum
  362. Minimum number of stacks possible using boxes of given capacities
  363. Count array elements that divide the sum of all other elements
  364. Number of trailing zeroes in base 16 representation of N!
  365. Count paths with distance equal to Manhattan distance
  366. Find the number of solutions to the given equation
  367. Find whether only two parallel lines contain all coordinates points or not
  368. XOR of a submatrix queries
  369. Find the minimum number of preprocess moves required to make two strings equal
  370. Find the Nth term of the series where each term f[i] = f[i - 1] - f[i - 2]
  371. Minimum number of given powers of 2 required to represent a number
  372. Sum of minimum element of all sub-sequences of a sorted array
  373. k-th missing element in an unsorted array
  374. Maximum occurrence of prefix in the Array
  375. Longest subsequence such that adjacent elements have at least one common digit
  376. Count all elements in the array which appears at least K times after their first occurrence
  377. Two equal sum segment range queries
  378. Numbers in a Range with given Digital Root
  379. Sum of numbers from 1 to N which are in Lucas Sequence
  380. Check for an array element that is co-prime with all others
  381. Find GCD of factorial of elements of given array
  382. Minimum steps to make all the elements of the array divisible by 4
  383. Find sum of a[i]%a[j] for all valid pairs
  384. Sum of elements in an array whose difference with the mean of another array is less than k
  385. Count of numbers from range [L, R] whose sum of digits is Y
  386. Find the sum of all Truncatable primes below N
  387. Search an element in given N ranges
  388. Check if the given array can be reduced to zeros with the given operation performed given number of times
  389. Find the numbers of strings that can be formed after processing Q queries
  390. Minimum array elements to be changed to make Recaman's sequence
  391. Maximum array sum that can be obtained after exactly k changes
  392. Replace the odd positioned elements with their cubes and even positioned elements with their squares
  393. Pairs of strings which on concatenating contains each character of "string"
  394. Generate original array from difference between every two consecutive elements
  395. Count number of ways to reach a given score in a Matrix
  396. Count of sub-strings that do not contain all the characters from the set {'a', 'b', 'c'} at the same time
  397. Find the area of the shaded region formed by the intersection of four semicircles in a square
  398. Maximum points covered after removing an Interval
  399. Minimum steps to color the tree with given colors
  400. Check whether factorial of N is divisible by sum of first N natural numbers
  401. Count of distinct sums that can be obtained by adding prime numbers from given arrays
  402. Maximum element in a sorted and rotated array
  403. Find the minimum number of steps to reach M from N
  404. Count the number of operations required to reduce the given number
  405. Sum of the series Kn + ( K(n-1) * (K-1)1 ) + ( K(n-2) * (K-1)2 ) + ....... (K-1)n
  406. Find the value of N when F(N) = f(a)+f(b) where a+b is the minimum possible and a*b = N
  407. Area of the biggest ellipse inscribed within a rectangle
  408. Count distinct points visited on the number line
  409. Count consecutive pairs of same elements
  410. Length of the longest increasing subsequence such that no two adjacent elements are coprime
  411. Find n positive integers that satisfy the given equations
  412. Find the Kth node in the DFS traversal of a given subtree in a Tree
  413. Maximize the happiness of the groups on the Trip
  414. Find (1^n + 2^n + 3^n + 4^n) mod 5 | Set 2
  415. Find the longest sub-string which is prefix, suffix and also present inside the string
  416. Find missing element in a sorted array of consecutive numbers
  417. Minimum number of changes such that elements are first Negative and then Positive
  418. Find the number of players who roll the dice when the dice output sequence is given
  419. Predict the winner of the game on the basis of absolute difference of sum by selecting numbers
  420. Program to calculate product of digits of a number
  421. Count the number of currency notes needed
  422. Minimize the sum calculated by repeatedly removing any two elements and inserting their sum to the Array
  423. Queries to answer the number of ones and zero to the left of given index
  424. Program to find the maximum difference between the index of any two different numbers
  425. Minimum possible final health of the last monster in a game
  426. Check if all the 1's in a binary string are equidistant or not
  427. Find the sum of digits of a number at even and odd places
  428. Find the value at kth position in the generated array
  429. Count the number of sub-arrays such that the average of elements present in the sub-array is greater than that not present in the sub-array
  430. Find the lexicographically smallest string which satisfies the given condition
  431. Find the number of sub arrays in the permutation of first N natural numbers such that their median is M
  432. Travelling Salesman Problem implementation using BackTracking
  433. Find HCF of two numbers without using recursion or Euclidean algorithm
  434. Queries to check if substring[L...R] is palindrome or not
  435. Count pairs of non-overlapping palindromic sub-strings of the given string
  436. Number of triangles possible with given lengths of sticks which are powers of 2
  437. Count of elements whose absolute difference with the sum of all the other elements is greater than k
  438. Find minimum positive integer x such that a(x^2) + b(x) + c >= k
  439. Print 2-D co-ordinate points in ascending order followed by their frequencies
  440. Number of subsequences with zero sum
  441. Count of sub-strings that do not consist of the given character
  442. Count the pairs of vowels in the given string
  443. Find the kth element in the series generated by the given N ranges
  444. Check whether the given string is a valid identifier
  445. Count of sub-strings of length n possible from the given string
  446. Maximum absolute difference in an array
  447. Move all zeros to start and ones to end in an Array of random integers
  448. Find out the minimum number of coins required to pay total amount
  449. Maximum elements which can be crossed using given units of a and b
  450. Sum of the series 1, 2, 4, 3, 5, 7, 9, 6, 8, 10, 11, 13.. till N-th term
  451. Reverse alternate k characters in a string
  452. Check if a number from every row can be selected such that xor of the numbers is greater than zero
  453. Area of triangle formed by the axes of co-ordinates and a given straight line
  454. Check if given two straight lines are identical or not
  455. Minimum number of elements to be removed such that the sum of the remaining elements is equal to k
  456. Find maximum product of digits among numbers less than or equal to N
  457. Check if the frequency of any character is more than half the length of the string
  458. Maximum length palindrome that can be created with characters in range L and R
  459. Number of ways to arrange K different objects taking N objects at a time
  460. Game Theory in Balanced Ternary Numeral System | (Moving 3k steps at a time)
  461. Find the position of box which occupies the given ball
  462. Find the Diameter or Longest chord of a Circle
  463. Determine the position of the third person on regular N sided polygon
  464. Length of the chord of the circle whose radius and the angle subtended at the center by the chord is given
  465. Maximum length of subarray such that sum of the subarray is even
  466. Sliding Window Maximum (Maximum of all subarrays of size k) using stack in O(n) time
  467. Longest alternative parity subsequence
  468. Roots of the quadratic equation when a + b + c = 0 without using Shridharacharya formula
  469. Rearrange the array to maximize the number of primes in prefix sum of the array
  470. Bitwise AND of sub-array closest to K
  471. Optimal Strategy for a Game | Set 2
  472. Sum of GCDs of each row of the given matrix
  473. Queries to find the maximum Xor value between X and the nodes of a given level of a perfect binary tree
  474. Find the index which is the last to be reduced to zero after performing a given operation
  475. Number of common tangents between two circles if their centers and radius is given
  476. Check if a circle lies inside another circle or not
  477. Build original array from the given sub-sequences
  478. Print all leaf nodes of an n-ary tree using DFS
  479. Count the nodes of the tree whose weighted string contains a vowel
  480. Minimum count of elements that sums to a given number
  481. Maximum items that can be filled in K Knapsacks of given Capacity
  482. Sum of all perfect numbers present in an array
  483. Print all the sub diagonal elements of the given square matrix
  484. Print all the super diagonal elements of the given square matrix
  485. Find the number of p-sided squares in a grid with K blacks painted
  486. Construct the Rooted tree by using start and finish time of its DFS traversal
  487. Find the total number of composite factor for a given number
  488. Count of substrings which contains a given character K times
  489. Total number of odd length palindrome sub-sequence around each centre
  490. Print Lower Hessenberg matrix of order N
  491. Print Upper Hessenberg matrix of order N
  492. Count common elements in two arrays containing multiples of N and M
  493. Total number of possible Binary Search Trees using Catalan Number
  494. Minimum operations to make sum of neighbouring elements <= X
  495. Number of triangles formed by joining vertices of n-sided polygon with one side common
  496. Maximum number of region in which N non-parallel lines can divide a plane
  497. Count pairs of strings that satisfy the given conditions
  498. Find the maximum number of elements divisible by 3
  499. Rearrange characters in a string such that no two adjacent are same using hashing
  500. Number of triangles formed by joining vertices of n-sided polygon with two common sides and no common sides
  501. Find Nth smallest number that is divisible by 100 exactly K times
  502. Find maximum value of the last element after reducing the array with given operations
  503. Find optimal weights which can be used to weigh all the weights in the range [1, X]
  504. Case-specific Sorting of Strings
  505. Number of ways of writing N as a sum of 4 squares
  506. Find a sequence of N prime numbers whose sum is a composite number
  507. Number of possible permutations when absolute difference between number of elements to the right and left are given
  508. Find the Nth term divisible by a or b or c
  509. Find K vertices in the graph which are connected to at least one of remaining vertices
  510. Reverse individual words with O(1) extra space
  511. Count of numbers whose 0th and Nth bits are set
  512. Percentage increase in the cylinder if the height is increased by given percentage but radius remains constant
  513. Percentage increase in volume of the sphere if radius is increased by a given percentage
  514. Find a number containing N - 1 set bits at even positions from the right
  515. Sentence Case of a given Camel cased string
  516. Minimum steps required to convert the matrix into lower hessenberg matrix
  517. Find a subarray whose sum is divisible by size of the array
  518. Optimally accommodate 0s and 1s from a Binary String into K buckets
  519. Flip minimum signs of array elements to get minimum sum of positive elements possible
  520. Find the number which when added to the given ratio a : b, the ratio changes to c : d
  521. Longest Consecuetive Subsequence when only one insert operation is allowed
  522. Sum of Semi-Prime Numbers less than or equal to N
  523. Find three element from given three arrays such that their sum is X | Set 2
  524. Number of intersections between two ranges
  525. Maximum element in an array such that its previous and next element product is maximum
  526. Number of ways of distributing N identical objects in R distinct groups
  527. Number of ways of distributing N identical objects in R distinct groups with no groups empty
  528. Total ways of choosing X men and Y women from a total of M men and W women
  529. Sort an array without changing position of negative numbers
  530. Greatest contiguous sub-array of size K
  531. Find Leftmost and Rightmost node of BST from its given preorder traversal
  532. Minimum number of steps to convert a given matrix into Diagonally Dominant Matrix
  533. Longest sub-array with equal number of alphabets and numeric characters
  534. Distinct adjacent elements in a binary array
  535. Find a partition point in array to maximize its xor sum
  536. 21 Matchsticks Problem
  537. Length of longest subarray in which elements greater than K are more than elements not greater than K
  538. Count of strings in the first array which are smaller than every string in the second array
  539. Number of N length sequences whose product is M
  540. Remove an element to maximize the GCD of the given array
  541. Number of hours after which the second person moves ahead of the first person if they travel at a given speed
  542. Number formed by the rightmost set bit in N
  543. Count of pairs between two arrays such that the sums are distinct
  544. Sequence with sum K and minimum sum of absolute differences between consecutive elements
  545. Find minimum possible values of A, B and C when two of the (A + B), (A + C) and (B + C) are given
  546. Find the color of given node in an infinite binary tree
  547. Arrange N elements in circular fashion such that all elements are strictly less than sum of adjacent elements
  548. Check if all the elements can be made equal on dividing with X and Y
  549. Count of N digit numbers possible which satisfy the given conditions
  550. Distinct strings such that they contains given strings as sub-sequences
  551. Count pairs with given sum | Set 2
  552. Probability of distributing M items among X bags such that first bag contains N items
  553. Minimum operations required to convert X to Y by multiplying X with the given co-primes
  554. Partition the array in K segments such that bitwise AND of individual segment sum is maximized
  555. Count ways to divide circle using N non-intersecting chord | Set-2
  556. Find k ordered pairs in array with minimum difference d
  557. Largest and smallest digit of a number
  558. Maximum length sub-array which satisfies the given conditions
  559. Minimum number of Bottles visible when a bottle can be enclosed inside another Bottle
  560. Sum of the distances from every node to all other nodes is maximum
  561. Perimeter of an Ellipse
  562. Find the number of occurrences of a character upto preceding position
  563. Longest sub string of 0's in a binary string which is repeated K times
  564. XOR in a range of a binary array
  565. Swap all occurrences of two characters to get lexicographically smallest string
  566. Count of elements that can be deleted without disturbing the mean of the initial array
  567. Maximum sum of the array after dividing it into three segments
  568. Find prime numbers in the first half and second half of an array
  569. Smallest element greater than X not present in the array
  570. Check if the given string is vowel prime
  571. Euler zigzag numbers ( Alternating Permutation )
  572. Program for sum of cosh(x) series upto Nth term
  573. Alcuin's Sequence
  574. Wedderburn–Etherington number
  575. Rearrange the characters of the string such that no two adjacent characters are consecutive English alphabets
  576. Count number of ways to reach destination in a maze
  577. Ramanujan Prime
  578. Quadruplet pair with XOR zero in the given Array
  579. Program to find first N Fermat Numbers
  580. Recursive program to find all Indices of a Number
  581. Right most non-zero digit in multiplication of array elements
  582. Maximum number of given operations to remove the entire string
  583. Count of all possible pairs of disjoint subsets of integers from 1 to N
  584. Print all the peaks and troughs in an Array of Integers
  585. Queries to print the character that occurs the maximum number of times in a given range
  586. Subsequence X of length K such that gcd(X[0], X[1]) + (X[2], X[3]) + ... is maximized
  587. Maximum Bitwise AND value of subsequence of length K
  588. Sum of N terms in the expansion of Arcsin(x)
  589. Product of Primes of all Subsets
  590. Largest substring with same Characters
  591. Maximum value of division of two numbers in an Array
  592. Nambiar Number Generator
  593. Sum of prime numbers without odd prime digits
  594. Maximum number of elements without overlapping in a Line
  595. Find the sum of elements of the Matrix generated by the given rules
  596. Sum of the sums of all possible subsets
  597. Concentric Hexagonal Numbers
  598. Find the diagonal of the Cube
  599. Nearest greater number by interchanging the digits
  600. Check whether two points (x1, y1) and (x2, y2) lie on same side of a given line or not
  601. Minimize the cost of buying the Objects
  602. Sum of digits with even number of 1's in their binary representation
  603. Count number of ways to reach destination in a Maze using BFS
  604. Remove duplicates from unsorted array
  605. Minimum operations required to convert a binary string to all 0s or all 1s
  606. Find the smallest positive number which can not be represented by given digits
  607. Find the remainder when First digit of a number is divided by its Last digit
  608. Find the remaining balance after the transaction
  609. Print the path between any two nodes of a tree | DFS
  610. Count the number of occurrences of a particular digit in a number
  611. Percentage increase in the volume of cuboid if length, breadth and height are increased by fixed percentages
  612. Count number of ways to get Odd Sum
  613. Convert an unbalanced bracket sequence to a balanced sequence
  614. Maximum String Partition
  615. Count of integers that divide all the elements of the given array
  616. Count number of bits to be flipped to convert A to B | Set-2
  617. Minimum number of Fibonacci jumps to reach end
  618. Print all the permutation of length L using the elements of an array | Iterative