SURENDRA_GANGWAR
SURENDRA_GANGWAR
  1. Sum of first n terms of a given series 3, 6, 11, .....
  2. 2D and 2.5D Memory organization
  3. Sum of the series 3, 20, 63, 144, ......
  4. Find the sum of n terms of the series 1,8,27,64 ....
  5. Find the sum of the series 2, 5, 13, 35, 97...
  6. Read and Write operations in Memory
  7. Find the missing value from the given equation a + b = c
  8. Program to find the Centroid of the triangle
  9. Find the altitude and area of an isosceles triangle
  10. Program to find the surface area of the square pyramid
  11. Program to find volume and surface area of pentagonal prism
  12. Assembly language program to find the range of bytes
  13. Register content and Flag status after Instructions
  14. Ways of selecting men and women from a group to make a team
  15. Number of ways to arrange a word such that all vowels occur together
  16. Program to evaluate the expression (√X+1)^6 + (√X-1)^6
  17. Python | OpenCV BGR color palette with trackbars
  18. Arrangement of the characters of a word such that all vowels are at odd places
  19. Number of triangles formed from a set of points on three lines
  20. Number of words in a camelcase sequence
  21. Greatest Integer Function
  22. Permutations of n things taken r at a time with k things together
  23. N digit numbers divisible by 5 formed from the M digits
  24. Minimum steps to remove substring 010 from a binary string
  25. Maximums from array when the maximum decrements after every access
  26. Maximum sum and product of the M consecutive digits in a number
  27. Index with Minimum sum of prefix and suffix sums in an Array
  28. Count occurrences of a character in a repeated string
  29. Sum of the alphabetical values of the characters of a string
  30. Software Engineering | Curve Fitting models
  31. Draw a triangle with centroid using OpenCV
  32. Permutations of string such that no two vowels are adjacent
  33. Cost to make a string Panagram
  34. Convert a String into a square matrix grid of characters
  35. Longest Sub-array with maximum average value
  36. Maximum occurrence of prefix in the Array
  37. Replace every consonant sequence with its length in the given string
  38. Deletions of "01" or "10" in binary string to make it free from "01" or "10"
  39. Reduce the fraction to its lowest form
  40. Divide a number into two parts
  41. Number of edges in mirror image of Complete binary tree
  42. Sum of GCDs of each row of the given matrix
  43. Count the nodes whose sum with X is a Fibonacci number
  44. Reduce the array to a single integer with the given operation
  45. Count the nodes of the tree whose weighted string contains a vowel
  46. Count of cells in a matrix which give a Fibonacci number when the count of adjacent cells is added
  47. Find max length odd parity substring
You may use GeeksforGeeks CONTRIBUTE portal to help other geeks. For more info, please refer this.

  1. Program to find whether a no is power of two
  2. Program to find parity
  3. Count digits in given number N which divide N
  4. Find the maximum distance covered using n bikes
  5. Check if binary representation of a number is palindrome
  6. Count number of ways to partition a set into k subsets
  7. Euler's criterion (Check if square root under modulo p exists)
  8. Volume of cube using its space diagonal
  9. Linear Diophantine Equations
  10. Find frequency of each element in a limited range array in less than O(n) time
  11. Number of ways to calculate a target number using only array elements
  12. Find number of subarrays with even sum
  13. Maximum value K such that array has at-least K elements that are >= K
  14. Find profession in a special family
  15. Reverse an array in groups of given size | Set 2 (Variations of Set 1 )
  16. Find Two Missing Numbers | Set 1 (An Interesting Linear Time Solution)
  17. Sort an array according to count of set bits
  18. Swap three variables without using temporary variable
  19. Find minimum elements after considering all possible transformations
  20. Minimum number of increment/decrement operations such that array contains all elements from 1 to N
  21. Minimum steps to reach end of array under constraints
  22. Number of swaps to sort when only adjacent swapping allowed
  23. Convert a number into negative base representation
  24. Find all sides of a right angled triangle from given hypotenuse and area | Set 1
  25. Count number of ways to reach destination in a Maze
  26. Find all distinct subset (or subsequence) sums of an array
  27. Compare two integers without using any Comparison operator
  28. Minimum number of page turns to get to a desired page
  29. Minimum number of equal amount bags to collect at least M money
  30. Largest divisible subset in array
  31. K difference permutation
  32. Find ways an Integer can be expressed as sum of n-th power of unique natural numbers
  33. Number of even substrings in a string of digits
  34. Solving f(n)= (1) + (2*3) + (4*5*6) ... n using Recursion
  35. Generate all binary permutations such that there are more or equal 1's than 0's before every point in all permutations
  36. Remove repeated digits in a given number
  37. Greedy Algorithm to find Minimum number of Coins
  38. Find whether a subarray is in form of a mountain or not
  39. Sort an array of strings according to string lengths
  40. Count the number of ways to divide an array into three contiguous parts having equal sum
  41. Rearrange an array such that every odd indexed element is greater than it previous
  42. Fibonacci modulo p
  43. Find the sum of all the terms in the n-th row of the given series
  44. Program for quotient and remainder of big number
  45. Length of the transverse common tangent between the two non intersecting circles
  46. Divide the two given numbers by their common divisors
  47. Queries for decimal values of subarrays of a binary array
  48. Find the Sub-array with sum closest to 0
  49. Round-off a number to a given number of significant digits
  50. Number of substrings divisible by 4 in a string of integers
  51. Ways to remove one element from a binary string so that XOR becomes zero
  52. Longest Prime Subarray after removing one element
  53. Maximum sum subarray having sum less than or equal to given sum
  54. Compute average of two numbers without overflow
  55. Largest number with the given set of N digits that is divisible by 2, 3 and 5
  56. Count subarrays with equal number of occurrences of two given elements
  57. Check whether a given point lies inside a rectangle or not
  58. Binary array after M range toggle operations
  59. All possible binary numbers of length n with equal sum in both halves
  60. Minimum number of Square Free Divisors
  61. Smallest index such that there are no 0 or 1 to its right
  62. A sorting algorithm that slightly improves on selection sort
  63. Find element at given index after given range reversals
  64. Find the winner of a game where scores are given as a binary string
  65. Unique element in an array where all elements occur k times except one
  66. Print N-bit binary numbers having more 1’s than 0’s in all prefixes
  67. Count of substrings of a binary string containing K ones
  68. Longest alternating sub-array starting from every index in a Binary Array
  69. Check whether a number has exactly three distinct factors or not
  70. Longest Repeated Subsequence
  71. Smallest integer with digit sum M and multiple of N
  72. Replace two substrings (of a string) with each other
  73. Maximum length subsequence possible of the form R^N K^N
  74. Lexicographically smallest string whose hamming distance from given string is exactly K
  75. Area of a triangle inscribed in a rectangle which is inscribed in an ellipse
  76. Print digit's position to be removed to make a number divisible by 6
  77. Check if an encoding represents a unique binary string
  78. Longest subarray having count of 1s one more than count of 0s
  79. Longest subsequence with no 0 after 1
  80. Minimum number of elements to add to make median equals x
  81. Divisibility by 64 with removal of bits allowed
  82. Longest subsequence of the form 0*1*0* in a binary string
  83. Longest subarray not having more than K distinct elements
  84. Check whether the given array is perfect or not
  85. Largest in array without using conditionals / bitwise / ternary operators
  86. Count sub-arrays which have elements less than or equal to X
  87. Minimum flips to make all 1s in left and 0s in right | Set 2
  88. Construct a distinct elements array with given size, sum and element upper bound
  89. Find maximum in an array without using Relational Operators
  90. Split the string into substrings using delimiter
  91. Minimum cost to construct a string
  92. Queries for maximum difference between prime numbers in given ranges
  93. Encrypt string with product of number of vowels and consonants in substring of size k
  94. Count of possible hexagonal walks
  95. Partition into two subarrays of lengths k and (N - k) such that the difference of sums is maximum
  96. Longest subarray with sum divisible by k
  97. Minimum number of subsets with distinct elements
  98. Count subsequence of length three in a given string
  99. Program to find the sum of a Series (1*1) + (2*2) + (3*3) + (4*4) + (5*5) + ... + (n*n)
  100. Count of subsequences having maximum distinct elements
  101. Maximum occurring character in an input string | Set-2
  102. Area of the biggest possible rhombus that can be inscribed in a rectangle
  103. Count consonants in a string (Iterative and recursive methods)
  104. Find the position of the last removed element from the array
  105. Find the Number which contain the digit d
  106. Program to implement t-test
  107. HCF of array of fractions (or rational numbers)
  108. Number of unique triplets whose XOR is zero
  109. Sparse Search
  110. Check whether bits are in alternate pattern in the given range | Set-2
  111. Program to check if matrix is singular or not
  112. Sum of columns of a 2-D Matrix where first element is odd
  113. Number of integers with odd number of set bits
  114. Array with GCD of any of its subset belongs to the given array
  115. Find nth term of the Dragon Curve Sequence
  116. Program to find the Nth term of the series 3, 7, 13, 21, 31.....
  117. Cost to Balance the parentheses
  118. Maximum equlibrium sum in an array
  119. Previous number same as 1's complement
  120. Maximum average sum partition of an array
  121. Printing longest Increasing consecutive subsequence
  122. Number of ways to form an array with distinct adjacent elements
  123. Count number of pairs in array having sum divisible by K | SET 2
  124. Minimum bit changes in Binary Circular array to reach a index
  125. Number whose XOR sum with given array is a given number k
  126. Maximum length of a sub-array with ugly numbers
  127. Minimum value of "max + min" in a subarray
  128. Largest set with bitwise OR equal to n
  129. Subtract 1 without arithmetic operators
  130. Number with set bits only between L-th and R-th index
  131. First X vowels from a string
  132. Find a Symmetric matrix of order N that contain integers from 0 to N-1 and main diagonal should contain only 0's
  133. Sum of multiplication of triplet of divisors of a number
  134. Recursive program to generate power set
  135. Repeated Character Whose First Appearance is Leftmost
  136. Maximum Product Subarray | Set 3
  137. Find the node whose xor with x gives maximum value
  138. Puzzle | Minimum distance for Lizard
  139. Count the number of intervals in which a given value lies
  140. kth smallest/largest in a small range unsorted array
  141. Program to calculate the Surface Area of a Triangular Prism
  142. Modify string by removing vowels in between two consonants
  143. Queries of nCr%p in O(1) time complexity
  144. Program to determine the octant of the axial plane
  145. Absolute difference between the first X and last X Digits of N
  146. Find all distinct subset (or subsequence) sums of an array | Set-2
  147. Longest substring with count of 1s more than 0s
  148. Weird Number
  149. Convert time from 24 hour clock to 12 hour clock format
  150. First element greater than or equal to X in prefix sum of N numbers using Binary Lifting
  151. Reallocation of elements based on Locality of Reference
  152. Length and Breadth of rectangle such that ratio of Area to diagonal^2 is maximum
  153. Delete array element in given index range [L - R]
  154. Number of Co-prime pairs obtained from the sum of digits of elements in the given range
  155. Count the number of pairs that have column sum greater than row sum
  156. Longest chain of arr[i], arr[arr[i]], .. without repetition
  157. Split array to three subarrays such that sum of first and third subarray is equal and maximum
  158. Modulus of all pairwise consecutive elements in an Array
  159. Print the last occurrence of elements in array in relative order
  160. Maximum profit after buying and selling the stocks
  161. Lowest Common Ancestor in Parent Array Representation
  162. Lexicographically smallest and largest substring of size k
  163. Count no. of ordered subsets having a particular XOR value
  164. Comparing leading zeros in binary representations of two numbers
  165. Find the Next perfect square greater than a given number
  166. Program to find the Nth term of the series 3, 20, 63, 144, 230, ……
  167. Program to find the Nth term of series 5, 10, 17, 26, 37, 50, 65, 82, ...
  168. Program to find the Nth term of series 0, 4, 14, 30, 51, 80, 114, 154, 200, ...
  169. Minimum number of items to be delivered
  170. Program to find the Nth term of the series 0, 14, 40, 78, 124, ...
  171. Program to find the Nth term of the series 0, 5, 14, 27, 44, ........
  172. Count ways to reach a score using 1 and 2 with no consecutive 2s
  173. Maximum length of segments of 0's and 1's
  174. Concatenate strings in any order to get Maximum Number of "AB"
  175. Program to calculate Bitonicity of an Array
  176. Find all angles of a triangle in 3D
  177. Sum of first n term of Series 3, 5, 9, 17, 33....
  178. Generating subarrays using recursion
  179. Find the number after successive division
  180. Sum of first n terms of a given series 3, 6, 11, .....
  181. Sum of first N terms of Quadratic Sequence 3 + 7 + 13 + ...
  182. Check if given string can be formed by two other strings or their permutations
  183. Rotations of a Binary String with Odd Value
  184. Find the sum of series 3, 7, 13, 21, 31....
  185. Find sum of the series 1-2+3-4+5-6+7.......
  186. Find sum of the series 1+22+333+4444+...... upto n terms
  187. Find the sum of infinite series 1^2.x^0 + 2^2.x^1 + 3^2.x^2 + 4^2.x^3 +.......
  188. Find area of triangle if two vectors of two adjacent sides are given
  189. Area of a circle inscribed in a regular hexagon
  190. Split the number into N parts such that difference between the smallest and the largest part is minimum
  191. Check if a point is inside, outside or on the ellipse
  192. Find nth term of a given recurrence relation
  193. Check if a point is inside, outside or on the parabola
  194. First triangular number whose number of divisors exceeds N
  195. Find the Nth term of the series 2 + 6 + 13 + 23 + . . .
  196. Find the sum of series 3, -6, 12, -24 . . . upto N terms
  197. Program to print the Sum of series -1 + 2 + 11 + 26 + 47 +.....
  198. Program to find Nth term of the series 3, 12, 29, 54, 87, ...
  199. Program to find Nth term of the series 3 , 5 , 21 , 51 , 95 , ...
  200. Program to find the sum of the series 23+ 45+ 75+..... upto N terms
  201. Program to print Hut
  202. Program to find Nth term of series 0, 10, 30, 60, 99, 150, 210, 280...........
  203. Program to find Nth term of series 2, 12, 28, 50, 77, 112, 152, 198, .....
  204. Program to find Nth term of series 4, 14, 28, 46, 68, 94, 124, 158, .....
  205. Find the direction from given string
  206. Sum of all Primes in a given range using Sieve of Eratosthenes
  207. Program to find volume and surface area of pentagonal prism
  208. Count characters with same neighbors
  209. Print a number strictly less than a given number such that all its digits are distinct.
  210. Divide an isosceles triangle in two parts with ratio of areas as n:m
  211. Program to solve the Alligation Problem
  212. Area of a circle inscribed in a rectangle which is inscribed in a semicircle
  213. Area of a square inscribed in a circle which is inscribed in a hexagon
  214. Find the k-th smallest divisor of a natural number N
  215. Radius of the biggest possible circle inscribed in rhombus which in turn is inscribed in a rectangle
  216. Check if a string can be rearranged to form special palindrome
  217. Program to find the maximum element in a Matrix
  218. Maximize number of nodes which are not part of any edge in a Graph
  219. Program to print the pattern with two hollow Triangles
  220. Find normal at a given point on the curve
  221. Product of non-repeating (distinct) elements in an Array
  222. Program to find the side of the Octagon inscribed within the square
  223. Program to replace every space in a string with hyphen
  224. Program to Calculate the Perimeter of a Decagon
  225. Minimum number of nodes in an AVL Tree with given height
  226. Program to Print Mirrored Hollow Parallelogram
  227. Program to find sum of 1 + x/2! + x^2/3! +...+x^n/(n+1)!
  228. Number of squares of side length required to cover an N*M rectangle
  229. Check if the characters of a given string are in alphabetical order
  230. Program to find the Area and Perimeter of a Semicircle
  231. Minimum time to reach a point with +t and -t moves at time t
  232. Maximize the sum of array by multiplying prefix of array with -1
  233. Program to find the Perimeter of a Regular Polygon
  234. Minimum swaps required to make a binary string alternating
  235. Find sum of N-th group of Natural Numbers
  236. Check if a number is a Trojan Number
  237. Rearrange all elements of array which are multiples of x in increasing order
  238. Section formula for 3 D
  239. Check if a number is an Achilles number or not
  240. Equation of circle from centre and radius
  241. Minimum squares to evenly cut a rectangle
  242. Minimum boxes required to carry all gifts
  243. Equation of parabola from its focus and directrix
  244. Round to next smaller multiple of 8
  245. Find the foot of perpendicular of a point in a 3 D plane
  246. Calculate volume and surface area of Torus
  247. Assign other value to a variable from two possible values
  248. Longest subarray with elements divisible by k
  249. Check whether a number has consecutive 0's in the given base or not
  250. Sorting array elements with set bits equal to K
  251. Replace all consonants with nearest vowels in a string
  252. Find middle point segment from given segment lengths
  253. Check whether sum of digits at odd places of a number is divisible by K
  254. Minimum array elements to be changed to make it a Lucas Sequence
  255. Maximum number of contiguous array elements with same number of set bits
  256. Equation of ellipse from its focus, directrix, and eccentricity
  257. Count Number of animals in a zoo from given number of head and legs
  258. Find permutation of n which is divisible by 3 but not divisible by 6
  259. Maximum area of rectangle possible with given perimeter
  260. Area of decagon inscribed within the circle
  261. Count subarrays consisting of only 0's and only 1's in a binary array
  262. Find maximum distance between any city and station
  263. Sum and Product of all Composite numbers which are divisible by k in an array
  264. Program to calculate area and perimeter of a rhombus whose diagonals are given
  265. Program to find Nth term of series 7, 21, 49, 91, 147, 217, ......
  266. Count the number of elements in an array which are divisible by k
  267. Count occurrences of the average of array elements with a given number
  268. Count ordered pairs with product less than N
  269. Count number less than N which are product of perfect squares
  270. Check if the Xor of the frequency of all digits of a number N is zero or not
  271. Find maximum volume of a cuboid from the given perimeter and area
  272. Program to print hollow Triangle pattern
  273. Minimize the value of N by applying the given operations
  274. Count the number of vowels occurring in all the substrings of given string
  275. Find if array has an element whose value is half of array sum
  276. GCD of a number raised to some power and another number
  277. Largest cube that can be inscribed within the sphere
  278. Sum of all the multiples of 3 and 7 below N
  279. Largest sphere that can be inscribed inside a cube
  280. Position after taking N steps to the right and left in an alternate manner
  281. Count pieces of circle after N cuts
  282. Find Selling Price from given Profit Percentage and Cost
  283. Find Maximum side length of square in a Matrix
  284. XOR of all elements of array with set bits equal to K
  285. Count number of bits changed after adding 1 to given N
  286. Different possible marks for n questions and negative marking
  287. Number of strictly increasing Buildings from right with distinct Colors
  288. Find two numbers with sum and product both same as N
  289. Find two numbers whose sum and GCD are given
  290. Maximum litres of water that can be bought with N Rupees
  291. Find the player who rearranges the characters to get a palindrome string first
  292. Find the number of primitive roots modulo prime
  293. Largest sub-array whose all elements are perfect squares
  294. Sum of multiples of A and B less than N
  295. Sum of common divisors of two numbers A and B
  296. Check if a large number is divisible by 75 or not
  297. Minimum number of characters to be replaced to make a given string Palindrome
  298. Count of cyclic permutations having XOR with other binary string as 0
  299. Number of ways to swap two bit of s1 so that bitwise OR of s1 and s2 changes
  300. Check if the array has an element which is equal to product of remaining elements
  301. Maximum number of parallelograms that can be made using the given length of line segments
  302. Minimum sum after subtracting multiples of k from the elements of the array
  303. Minimum steps to convert one binary string to other only using negation
  304. Program to print 'N' alphabet using the number pattern from 1 to n
  305. Ratio of area of a rectangle with the rectangle inscribed in it
  306. Partiton N into M parts such that difference between Max and Min part is smallest
  307. Largest number in an array that is not a perfect cube
  308. Print sum of matrix and its mirror image
  309. Largest perfect cube number in an Array
  310. Minimum number of moves required to reach the destination by the king in a chess board
  311. Minimum elements to be added in a range so that count of elements is divisible by K
  312. Sum of the digits of a number N written in all bases from 2 to N/2
  313. Lexicographically smallest substring with maximum occurrences containing a's and b's only
  314. Sorting rows of matrix in descending order followed by columns in ascending order
  315. Find sum of a number and its maximum prime factor
  316. Distance between two nodes of binary tree with node values from 1 to N
  317. Sum of elements whose square root is present in the array
  318. Range and Coefficient of range of Array
  319. Frequency of each element of an array of small ranged values
  320. Size of the smallest subset with maximum Bitwise OR
  321. Replace every element of the array by its previous element
  322. Sum of first N natural numbers which are divisible by X or Y
  323. Check if a number is Triperfect Number
  324. Length of rope tied around three equal circles touching each other
  325. Maximize the difference between two subsets of a set with negatives
  326. Check if the given decimal number has 0 and 1 digits only
  327. Number of Binary Strings of length N with K adjacent Set Bits
  328. Sum of the multiples of two numbers below N
  329. Sort the array in a given index range
  330. Concatenate suffixes of a String
  331. Minimum absolute difference of a number and its closest prime
  332. Largest palindromic number in an array
  333. Split a number into 3 parts such that none of the parts is divisible by 3
  334. Sum of integers upto N with given unit digit
  335. Closest perfect square and its distance
  336. Count sub-sets that satisfy the given condition
  337. Leftmost and rightmost indices of the maximum and the minimum element of an array
  338. Find nth Hermite number
  339. Longest Subsequence where index of next element is arr[arr[i] + i]
  340. Smallest subarray containing minimum and maximum values
  341. Find minimum x such that (x % k) * (x / k) == n | Set-2
  342. Minimize the maximum minimum difference after one removal from array
  343. Sum of LCM(1, n), LCM(2, n), LCM(3, n), ... , LCM(n, n)
  344. Buy minimum items without change and given coins
  345. Check if all elements of the array are palindrome or not
  346. Count common prime factors of two numbers
  347. Occurrences of a pattern in binary representation of a number
  348. Represent n as the sum of exactly k powers of two | Set 2
  349. Number of ways to remove a sub-string from S such that all remaining characters are same
  350. Count number of pairs (i, j) such that arr[i] * arr[j] > arr[i] + arr[j]
  351. Find probability that a player wins when probabilities of hitting the target are given
  352. Minimum absolute difference between N and a power of 2
  353. Number of subarrays have bitwise OR >= K
  354. Find cost price from given selling price and profit or loss percentage
  355. First and Last Three Bits
  356. Length of the longest substring with consecutive characters
  357. Smallest perfect Cube divisible by all elements of an array
  358. Recursive program to print all numbers less than N which consist of digits 1 or 3 only
  359. Cost to make a string Panagram | Set 2
  360. Print n 0s and m 1s such that no two 0s and no three 1s are together
  361. Biggest Reuleaux Triangle within a Square which is inscribed within a Circle
  362. Print all Proth primes up to N
  363. Count of strings that become equal to one of the two strings after one removal
  364. Count of Numbers such that difference between the number and sum of its digits not less than L
  365. Check if a string can be repeated to make another string
  366. Largest number less than or equal to N/2 which is coprime to N
  367. Sort even and odd placed elements in increasing order
  368. Print all multiplicative primes <= N
  369. Find the resulting Colour Combination
  370. Find the Side of the smallest Square that can contain given 4 Big Squares
  371. Find array using different XORs of elements in groups of size 4
  372. Midpoint ellipse drawing algorithm
  373. Make all elements of an array equal with the given operation
  374. Minimum operations of the given type required to make a complete graph
  375. Count of pairs of (i, j) such that ((n % i) % j) % n is maximized
  376. Array element with minimum sum of absolute differences
  377. Decrypt a string encrypted by repeating i-th character i times
  378. Minimum replacements to make adjacent characters unequal in a ternary string
  379. Program to find LCM of two Fibonnaci Numbers
  380. Minimum operations required to make all the array elements equal
  381. Ways to divide a binary array into sub-arrays such that each sub-array contains exactly one 1
  382. Program to Assign grades to a student using Nested If Else
  383. Maximum number of teams that can be formed with given persons
  384. Maximum count of sub-strings of length K consisting of same characters
  385. Maximize the value of x + y + z such that ax + by + cz = n
  386. Number of sub-strings that contain the given character exactly k times
  387. Find integers that divides maximum number of elements of the array
  388. Maximum size of sub-array that satisfies the given condition
  389. Numbers of Length N having digits A and B and whose sum of digits contain only digits A and B
  390. Maximum sum after repeatedly dividing N by a divisor
  391. Lexicographically largest sub-sequence of the given string
  392. Minimum number of operations to move all uppercase characters before all lower case characters
  393. Number of ways to choose an integer such that there are exactly K elements greater than it in the given array
  394. Find frequency of smallest value in an array
  395. Acronym words
  396. Maximum number of segments that can contain the given points
  397. Modify a binary array to Bitwise AND of all elements as 1
  398. Minimum number of given operations required to convert a string to another string
  399. Minimum replacements to make adjacent characters unequal in a ternary string | Set-2
  400. Pick maximum sum M elements such that contiguous repetitions do not exceed K
  401. Minimize the sum of the squares of the sum of elements of each group the array is divided into
  402. Find a positive number M such that gcd(N^M, N&M) is maximum
  403. Given two binary strings perform operation until B > 0 and print the result
  404. Minimum number of moves to make a binary array K periodic
  405. Iterating over all possible combinations in an Array using Bits
  406. Check whether two strings are equivalent or not according to given condition
  407. Smallest Special Prime which is greater than or equal to a given number
  408. Select numbers in such way to maximize the amount of money
  409. Maximum Bitwise AND pair from given range
  410. Print k different sorted permutations of a given array
  411. Longest sub-sequence of array containing Lucas numbers
  412. Sum of the natural numbers (up to N) whose modulo with K yield R
  413. Find N % 4 (Remainder with 4) for a large value of N
  414. Schedule elevator to reduce the total time taken
  415. Minimum elements to be removed such that sum of adjacent elements is always even
  416. Maximum length subarray with difference between adjacent elements as either 0 or 1
  417. Count numbers in range 1 to N which are divisible by X but not by Y
  418. Number of trailing zeroes in base B representation of N!
  419. Minimum distance to the corner of a grid from source
  420. Pick points from array such that minimum distance is maximized
  421. Minimum cost to make two strings same
  422. Minimum matches the team needs to win to qualify
  423. Maximum length of balanced string after swapping and removal of characters
  424. Print all the sum pairs which occur maximum number of times
  425. Count permutations that are first decreasing then increasing.
  426. Check whether the Average Character of the String is present or not
  427. Series summation if T(n) is given and n is very large
  428. Minimum cost to form a number X by adding up powers of 2
  429. Program to calculate the value of nPr
  430. Check if the given string is K-periodic
  431. Smallest and Largest Palindrome with N Digits
  432. Count how many times the given digital clock shows identical digits
  433. Search an element in given N ranges
  434. Minimum cuts required to convert a palindromic string to a different palindromic string
  435. Check if matrix can be converted to another matrix by transposing square sub-matrices
  436. First string from the given array whose reverse is also present in the same array
  437. Count of pairs from 1 to a and 1 to b whose sum is divisible by N
  438. Check if Matrix remains unchanged after row reversals
  439. Generate all the binary strings of N bits
  440. Maximum trace possible for any sub-matrix of the given matrix
  441. Position of the K-th set bit in a number
  442. Print a number as string of 'A' and 'B' in lexicographic order
  443. Sort elements of the array that occurs in between multiples of K
  444. Print the longest prefix of the given string which is also the suffix of the same string
  445. Minimum cost to reach end of array array when a maximum jump of K index is allowed
  446. Count pairs with bitwise OR less than Max
  447. Queries to return the absolute difference between L-th smallest number and the R-th smallest number
  448. Perform K of Q queries to maximize the sum of the array elements
  449. Programs for printing pyramid patterns using recursion
  450. Maximize the median of the given array after adding K elements to the same array
  451. Replace all elements by difference of sums of positive and negative numbers after that element
  452. Program to find the kth character after decrypting a string
  453. Print all Semi-Prime Numbers less than or equal to N
  454. Minimize the cost to split a number
  455. Program to find the time after K minutes from given time
  456. Minimum number of given operation required to convert n to m
  457. Number of ways in which the substring in range [L, R] can be formed using characters out of the range
  458. Maximum volume of cube for every person when edge of N cubes are given
  459. Minimum number operations required to convert n to m | Set-2
  460. Maximum consecutive one’s (or zeros) in a binary circular array
  461. Find the maximum number of composite summands of a number
  462. Count common characters in two strings
  463. Minimum value to add to arr[i] so that an array can be split at index i with equal sum
  464. Sum of degrees of all nodes of a undirected graph
  465. Find the hypotenuse of a right angled triangle with given two sides
  466. Print last character of each word in a string
  467. Sort ugly numbers in an array at their relative positions
  468. Replace array elements by sum of next two consecutive elements
  469. Maximum array sum that can be obtained after exactly k changes
  470. Given an array and two integers l and r, find the kth largest element in the range [l, r]
  471. Check if factorial of N is divisible by the sum of squares of first N natural numbers
  472. Find the number of jumps to reach X in the number line from zero
  473. Element in a matrix starting from which anti-clockwise traversal ends at the last element
  474. Find the final radiations of each Radiated Stations
  475. Count number of binary strings of length N having only 0's and 1's
  476. Find original numbers from gcd() every pair
  477. Check if a given number divides the sum of the factorials of its digits
  478. Count the number of pairs (i, j) such that either arr[i] is divisible by arr[j] or arr[j] is divisible by arr[i]
  479. Find the sum of the diagonal elements of the given N X N spiral matrix
  480. Find the number of binary strings of length N with at least 3 consecutive 1s
  481. Minimum number of given operations required to convert a permutation into an identity permutation
  482. Find the count of sub-strings whose characters can be rearranged to form the given word
  483. Count all prefixes of the given binary array which are divisible by x
  484. Elements greater than the previous and next element in an Array
  485. Find the number of elements greater than k in a sorted array
  486. Find maximum sum taking every Kth element in the array
  487. Find missing element in a sorted array of consecutive numbers
  488. Find the number of players who roll the dice when the dice output sequence is given
  489. Program to calculate product of digits of a number
  490. Print the first and last character of each word in a String
  491. Minimum possible final health of the last monster in a game
  492. Check if two strings are same ignoring their cases
  493. Find the sum of digits of a number at even and odd places
  494. 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
  495. Check if product of first N natural numbers is divisible by their sum
  496. Check if matrix A can be converted to B by changing parity of corner elements of any submatrix
  497. Maximum sum of cocktail glass in a 2D matrix
  498. Minimum length of the sub-string whose characters can be used to form a palindrome of length K
  499. Find the maximum possible value of a[i] % a[j] over all pairs of i and j
  500. Sum of elements in 1st array such that number of elements less than or equal to them in 2nd array is maximum
  501. Given a string and an integer k, find the kth sub-string when all the sub-strings are sorted according to the given condition
  502. Check whether the given string is a valid identifier
  503. Find the nth term of the given series
  504. Move all zeros to start and ones to end in an Array of random integers
  505. Queries to update a given index and find gcd in range
  506. Product of all Subsequences of size K except the minimum and maximum Elements
  507. Longest substring of only 4's from the first N characters of the infinite string
  508. Equation of straight line passing through a given point which bisects it into two equal line segments
  509. Largest number not greater than N which can become prime after rearranging its digits
  510. Count arrays of length K whose product of elements is same as that of given array
  511. Remove all occurrences of any element for maximum array sum
  512. Maximum elements which can be crossed using given units of a and b
  513. Minimum value of X to make all array elements equal by either decreasing or increasing by X
  514. Minimum cost to modify a string
  515. Find the minimum sum of distance to A and B from any integer point in a ring of size N
  516. Game Theory in Balanced Ternary Numeral System | (Moving 3k steps at a time)
  517. Check if string can be made lexicographically smaller by reversing any substring
  518. Count of quadruplets with given Sum | Set 2
  519. Number of character corrections in the given strings to make them equal
  520. Reorder the position of the words in alphabetical order
  521. Given two arrays count all pairs whose sum is an odd number
  522. Count pairs with average present in the same array
  523. Queries to answer the X-th smallest sub-string lexicographically
  524. Find element with the maximum set bits in an array
  525. Generate an array of K elements such that sum of elements is N and the condition a[i] < a[i+1] <= 2*a[i] is met | Set 2
  526. Calculate score for the given binary string
  527. Count number of 1s in the array after N moves
  528. Find permutation of first N natural numbers that satisfies the given condition
  529. Check if the robot is within the bounds of the grid after given moves
  530. Make lexicographically smallest palindrome by substituting missing characters
  531. Count number of subsets whose median is also present in the same subset
  532. Compare sum of first N-1 elements to Nth element of an array
  533. Choose X such that (A xor X) + (B xor X) is minimized
  534. Program to print an array in Pendulum Arrangement with constant space
  535. Ratio of the distance between the centers of the circles and the point of intersection of two direct common tangents to the circles
  536. Find a number which give minimum sum when XOR with every number of array of integers
  537. Generate an Array in which count of even and odd sum sub-arrays are E and O respectively
  538. Maximum sum path in a matrix from top to bottom and back
  539. Find prime number K in an array such that (A[i] % K) is maximum
  540. Count Pairs from two arrays with even sum
  541. GCD from root to leaf path in an N-ary tree
  542. Check whether product of integers from a to b is positive , negative or zero
  543. Maximum sum such that no two elements are adjacent | Set 2
  544. Count of distinct rectangles inscribed in an equilateral triangle
  545. Check if the number is even or odd whose digits and base (radix) is given
  546. Check whether a number can be represented as sum of K distinct positive integers
  547. Count index pairs which satisfy the given condition
  548. Minimum number of operations on a binary string such that it gives 10^A as remainder when divided by 10^B
  549. Minimize the number of steps required to reach the end of the array | Set 2
  550. Minimum steps required to reach the end of a matrix | Set 2
  551. Queries for bitwise AND in the given matrix
  552. Queries for bitwise OR in the given matrix
  553. Generate all unique partitions of an integer | Set 2
  554. Check if the given array contains all the divisors of some integer
  555. Find N distinct numbers whose bitwise Or is equal to K
  556. Maximum sum in an array such that every element has exactly one adjacent element to it
  557. Find the number of pair of Ideal nodes in a given tree
  558. Split the given array into K sub-arrays such that maximum sum of all sub arrays is minimum
  559. Find number of factors of N when location of its two factors whose product is N is given
  560. Minimum time required to rot all oranges | Dynamic Programming
  561. Find a subarray whose sum is divisible by size of the array
  562. Find the height of a right-angled triangle whose area is X times its base
  563. Find the number of words of X vowels and Y consonants that can be formed from M vowels and N consonants
  564. Sum of all second largest divisors after splitting a number into one or more parts
  565. Count pairs in an array such that the absolute difference between them is ≥ K
  566. Count equal pairs from given string arrays
  567. Check if a number is Fermat Pseudoprime
  568. Divide the array in K segments such that the sum of minimums is maximized
  569. Maximum value after merging all elements in the array
  570. Map every character of one string to another such that all occurrences are mapped to the same character
  571. Find area of the larger circle when radius of the smaller circle and difference in the area is given
  572. All unique combinations whose sum equals to K
  573. Find the prime P using given four integers
  574. Maximum sum combination from two arrays
  575. Convert a String to an Integer using Recursion
  576. Program to find the Speed of train as per speed of sound
  577. Lexicographically largest permutation of the array such that a[i] = a[i-1] + gcd(a[i-1], a[i-2])
  578. Program to find the Depreciation of Value
  579. Modular Exponentiation of Complex Numbers
  580. Check if the product of every contiguous subsequence is different or not in a number
  581. Find the final sequence of the array after performing given operations
  582. Find all combinations of two equal sum subsequences
  583. Right most non-zero digit in multiplication of array elements
  584. Number of shortest paths to reach every cell from bottom-left cell in the grid
  585. Find the smallest positive number missing from an unsorted array | Set 3
  586. Find minimum changes required in an array for it to contain k distinct elements
  587. Find the ln(X) and log10X with the help of expansion
  588. Round the given number to nearest multiple of 10 | Set-2
  589. Minimum number of Binary strings to represent a Number
  590. Remove duplicates from unsorted array using Set data structure
  591. Find the average of k digits from the beginning and l digits from the end of the given number
  592. Count the number of occurrences of a particular digit in a number